Skip to content

Instantly share code, notes, and snippets.

@tfausak
Last active April 21, 2016 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfausak/0128f9d3353f8ffe345a78e2c636942c to your computer and use it in GitHub Desktop.
Save tfausak/0128f9d3353f8ffe345a78e2c636942c to your computer and use it in GitHub Desktop.
Weird interplay between overloaded strings and rebindable syntax. Why does this happen? Which tool is at fault? Both Stack 1.0.5 and Cabal 1.22.9.0 exhibit this problem.
name: example
version: 1
cabal-version: >=1.10
build-type: Simple
library
build-depends: base
default-language: Haskell2010
default-extensions:
OverloadedStrings
RebindableSyntax
other-modules: Paths_example
example> stack --version
Version 1.0.5, Git revision 1f56aa4862bac82adcf655152561bf9f88b08a62 x86_64 hpack-0.12.0
example> stack build
example-1: configure
Configuring example-1...
example-1: build
Preprocessing library example-1...
[1 of 1] Compiling Paths_example ( .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/Paths_example.o )
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:19:14:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:20:14:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:21:14:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:22:14:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:23:14:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:26:29:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:27:29:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:28:30:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:29:33:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:30:33:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
/private/tmp/example/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/Paths_example.hs:35:18:
Not in scope: ‘fromString’
Perhaps you meant ‘showString’ (imported from Prelude)
-- While building package example-1 using:
/Users/tfausak/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 build lib:example --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
resolver: nightly-2016-04-20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment