pa-ba / compdata

Haskell library implementing "Data Types a la Carte"
http://hackage.haskell.org/package/compdata
Other
89 stars 27 forks source link

Fails to compile in ghc 8.0.1 #20

Closed oliver-batchelor closed 6 years ago

oliver-batchelor commented 8 years ago

I'm seeing a bunch of errors like this building with hackage:

Fixed in the github version, maybe time for a new release?

src/Data/Comp/Render.hs:32:22: error: • Couldn't match type ‘Tree NodeInfo -> IO ()’ with ‘IO ()’ Expected type: Term f -> IO () Actual type: Term f -> Tree NodeInfo -> IO () • Probable cause: ‘(.)’ is applied to too few arguments In the expression: writeHtmlTree file . fmap (\ n -> NodeInfo n "") . stringTree In an equation for ‘writeHtmlTerm’: writeHtmlTerm file = writeHtmlTree file . fmap (\ n -> NodeInfo n "") . stringTree

src/Data/Comp/Render.hs:32:36: error: • Couldn't match type ‘[Char]’ with ‘Maybe FilePath’ Expected type: Maybe FilePath Actual type: FilePath • In the first argument of ‘writeHtmlTree’, namely ‘file’ In the first argument of ‘(.)’, namely ‘writeHtmlTree file’ In the expression: writeHtmlTree file . fmap (\ n -> NodeInfo n "") . stringTree

eeasley-coursera commented 7 years ago

Pretty sure this is fixed by #19.