We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030d161 commit e01483cCopy full SHA for e01483c
stack2nix/Main.hs
@@ -39,9 +39,16 @@ args = Args
39
-- | Copied from cabal2nix/src/Cabal2nix.hs
40
platformReader :: P.ReadP r Platform
41
platformReader = do
42
- arch <- P.choice [P.string "i686" >> return I386, P.string "x86_64" >> return X86_64]
+ arch <- P.choice
43
+ [ P.string "i686" >> return I386
44
+ , P.string "x86_64" >> return X86_64
45
+ ]
46
_ <- P.char '-'
- os <- P.choice [P.string "linux" >> return Linux, P.string "darwin" >> return OSX]
47
+ os <- P.choice
48
+ [ P.string "linux" >> return Linux
49
+ , P.string "osx" >> return OSX
50
+ , P.string "darwin" >> return OSX
51
52
return (Platform arch os)
53
54
readP :: P.ReadP a a -> ReadM a
0 commit comments