Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ghc --make site.hs" encounter error #1

Open
luckypoem opened this issue Dec 31, 2016 · 0 comments
Open

"ghc --make site.hs" encounter error #1

luckypoem opened this issue Dec 31, 2016 · 0 comments

Comments

@luckypoem
Copy link

root@AR:/usr/local/CompanyCampus-blog# ghc --make site.hs
[1 of 1] Compiling Main ( site.hs, site.o )

site.hs:135:29: error:
• Couldn't match type ‘unordered-containers-0.2.7.1:Data.HashMap.Base.HashMap
Data.Text.Internal.Text
aeson-0.11.2.1:Data.Aeson.Types.Internal.Value’
with ‘M.Map String (Compiler ContextField)’
Expected type: M.Map String (Compiler ContextField)

    Actual type: Metadata
• In the first argument of ‘makeMetadataContext’, namely ‘m’
  In the second argument of ‘mappend’, namely ‘makeMetadataContext m’
  In the expression:
    makeUrlField i `mappend` dateField "date" "%B %e, %Y"
    `mappend` makeMetadataContext m

root@AR:/usr/local/CompanyCampus-blog#

how to fix it?
thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant