[commit: ghc] wip/nfs-locking: Support multiword options. (b9c1da8)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:02:20 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/b9c1da83d8c87ee3f95fa25ed284ce7a12f81caa/ghc

>---------------------------------------------------------------

commit b9c1da83d8c87ee3f95fa25ed284ce7a12f81caa
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Jan 6 19:18:29 2015 +0000

    Support multiword options.


>---------------------------------------------------------------

b9c1da83d8c87ee3f95fa25ed284ce7a12f81caa
 src/Oracles/Option.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Oracles/Option.hs b/src/Oracles/Option.hs
index 365c526..6f05a0e 100644
--- a/src/Oracles/Option.hs
+++ b/src/Oracles/Option.hs
@@ -13,7 +13,7 @@ data Option = TargetOS | TargetArch | TargetPlatformFull
             | HostOsCpp
 
 instance ShowAction Option where
-    showAction opt = showAction $ askConfig $ case opt of 
+    showAction opt = showAction $ fmap words $ askConfig $ case opt of 
         TargetOS                -> "target-os"
         TargetArch              -> "target-arch"
         TargetPlatformFull      -> "target-platform-full"



More information about the ghc-commits mailing list