Discussion:
[hakyll] how to fix the error: "Couldn't match type ‘unordered-containers-0.2.7.1:Data.HashMap.Base.HashMap"?
b***@gmail.com
2017-01-15 15:06:58 UTC
Permalink
hi.

***@AR:/usr/local# git clone https://github.com/CompanyCampus/blog
CompanyCampus-blog
***@AR:/usr/local# cd CompanyCampus-blog
***@AR:/usr/local/
CompanyCampus-blog#
***@AR:/usr/local/CompanyCampus-blog# ls
Makefile contact.markdown images posts templates
about.rst css index.html site.hs
***@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.2:Data.HashMap.Base.HashMap
Data.Text.Internal.Text
aeson-1.1.0.0: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
***@AR:/usr/local/CompanyCampus-blog#

tks a lot
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan Tojnar
2017-01-15 15:35:14 UTC
Permalink
Post by b***@gmail.com
• Couldn't match type
‘unordered-containers-0.2.7.2:Data.HashMap.Base.HashMap
Data.Text.Internal.Text
aeson-1.1.0.0:Data.Aeson.Types.Internal.Value’
with ‘M.Map String (Compiler ContextField)’
Expected type: M.Map String (Compiler ContextField)
Actual type: Metadata
The site uses old Hakyll version. Replace M.lookup with lookupString.
For more information see:

https://stackoverflow.com/questions/37801054/m-map-sudden-expected-type-error/37829498#37829498.

Jan
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...