Discussion:
[hakyll] Probleme Compiling on a freshly installed Mac
Martin Hilscher
2015-09-12 12:24:56 UTC
Permalink
Hi *,

I just setup a new Mac and installed ghc (7.10.2) (from brew) and after
that cabal installed hakyll. The problem now is that when trying to compile
my blogs source I get errors that timeLocale is expected to be from
time-1.5 but is from old-locale (see below)

site.hs:356:31:
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘getItemUTC’, namely ‘timeLocale’
In the expression: getItemUTC timeLocale

site.hs:357:29:
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘formatTime’, namely ‘timeLocale’
In the expression: formatTime timeLocale "%Y" utcTime

site.hs:357:65:
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘formatTime’, namely ‘timeLocale’
In the expression: formatTime timeLocale "%m" utcTime

Does anybody have a solution for that?

Thanks in advance and best regards,

Martin


P.S.: Should you need to look at the code, you can find it here:
https://github.com/xinitrc/xinitrc.de
--
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.
Kyle Marek-Spartz
2015-09-12 12:46:34 UTC
Permalink
I just fixed this myself! See the changes to my site.hs in this commit:

https://github.com/zeckalpha/kyle.marek-spartz.org/commit/e20fa8dd1b1747a10d5b5f5db55621879c320864
Post by Martin Hilscher
Hi *,
I just setup a new Mac and installed ghc (7.10.2) (from brew) and after
that cabal installed hakyll. The problem now is that when trying to compile
my blogs source I get errors that timeLocale is expected to be from
time-1.5 but is from old-locale (see below)
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘getItemUTC’, namely ‘timeLocale’
In the expression: getItemUTC timeLocale
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘formatTime’, namely ‘timeLocale’
In the expression: formatTime timeLocale "%Y" utcTime
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package ‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘formatTime’, namely ‘timeLocale’
In the expression: formatTime timeLocale "%m" utcTime
Does anybody have a solution for that?
Thanks in advance and best regards,
Martin
https://github.com/xinitrc/xinitrc.de
--
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
For more options, visit https://groups.google.com/d/optout.
--
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.
Martin Hilscher
2015-09-12 12:52:35 UTC
Permalink
Hi,

thank you, I should have come up with that myself. I'm obviously not as
awake as I wish I would like to be ;-)

Best regards,

Martin

On Sat, Sep 12, 2015 at 2:46 PM, Kyle Marek-Spartz <
Post by Kyle Marek-Spartz
https://github.com/zeckalpha/kyle.marek-spartz.org/commit/e20fa8dd1b1747a10d5b5f5db55621879c320864
Post by Martin Hilscher
Hi *,
I just setup a new Mac and installed ghc (7.10.2) (from brew) and after
that cabal installed hakyll. The problem now is that when trying to compile
my blogs source I get errors that timeLocale is expected to be from
time-1.5 but is from old-locale (see below)
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package
‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘getItemUTC’, namely ‘timeLocale’
In the expression: getItemUTC timeLocale
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package
‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘formatTime’, namely ‘timeLocale’
In the expression: formatTime timeLocale "%Y" utcTime
Couldn't match expected type
‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
with actual type ‘System.Locale.TimeLocale’
NB: ‘time-1.5.0.1:Data.Time.Format.Locale.TimeLocale’
is defined in ‘Data.Time.Format.Locale’ in package
‘time-1.5.0.1’
‘System.Locale.TimeLocale’
is defined in ‘System.Locale’ in package ‘old-locale-1.0.0.7’
In the first argument of ‘formatTime’, namely ‘timeLocale’
In the expression: formatTime timeLocale "%m" utcTime
Does anybody have a solution for that?
Thanks in advance and best regards,
Martin
https://github.com/xinitrc/xinitrc.de
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
For more options, visit https://groups.google.com/d/optout.
--
---

Email is like tetris, you loose eventually.
--
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...