haskellcabalyesod

Yesod fails to install (namely the text package)


I'm trying to install Yesod via cabal, but it keeps failing on installing Data.Text.

I tried installing text separately with cabal install text, resulting in an error message:

Resolving dependencies...
Configuring text-0.11.1.0...
Preprocessing library text-0.11.1.0...
Building text-0.11.1.0...

Data/Text/Lazy/Builder/RealFloat.hs:21:7:
    Could not find module `Data.Text.Lazy.Builder.RealFloat.Functions':
      Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
text-0.11.1.0 failed during the building phase. The exception was:
ExitFailure 1

Investigating the directory structure of the text package that was downloaded, I find that there really is no Data/Text/Lazy/Builder/RealFloat/Functions.hs. The closest thing is Data/Text/Lazy/Builder/Functions.hs (but this doesn't contain the function RealFloat.hs was trying to import, which was roundTo).

How can I fix this?


Solution

  • This is a ghc7.0 related issue (and listed at hackage under "Build failure"). Try to install text-0.11.0.8 that should work for yesod.