commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.99k stars 845 forks source link

"stack ghci" should either use haskell2010, or pay attention to the cabal file language specification #2092

Open mgsloan opened 8 years ago

mgsloan commented 8 years ago

From nitrix on #haskell, line 15 of http://lpaste.net/162186 has a do block with the contents aligned with the let. It builds with haskell98 but not haskell2010.

nitrix commented 8 years ago

Actually, it compiles with stack ghci but not with stack build. The error says Parse error on a binding <- of a do block. (line #15 on the paste). The project is indeed haskell2010; we suspect it could be the issue.

mgsloan commented 8 years ago

Right, stack ghci is running in haskel98 mode. stack build knows to use haskell2010.