Skip to content

Instantly share code, notes, and snippets.

@pankajmore
Last active December 14, 2015 03:39
Show Gist options
  • Save pankajmore/5022721 to your computer and use it in GitHub Desktop.
Save pankajmore/5022721 to your computer and use it in GitHub Desktop.
Error on ghc --make site.js on a default hakyll-init Using latest github cabal pkg
site.hs:36:51:
Couldn't match type `[Item String]' with `Item String'
Expected type: [Item String] -> [Item String]
Actual type: [Item String] -> [[Item String]]
In the first argument of `postList', namely `recentFirst'
In the expression: postList recentFirst
In the second argument of `field', namely
`(\ _ -> postList recentFirst)'
site.hs:49:69:
Couldn't match type `[Item String]' with `Item String'
Expected type: [Item String] -> [Item String]
Actual type: [Item String] -> [[Item String]]
In the second argument of `(.)', namely `recentFirst'
In the first argument of `postList', namely
`(take 3 . recentFirst)'
In the expression: postList (take 3 . recentFirst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment