According to the doc on Hackage, Data.Time.Format
exposed defaultTimeLocal
.
However, when I try to use it, it doesn't exits.
When I look at the code, it doesn't seems to be exposed either (if I generate the doc from the source, I don't see this defaultTimeLocale
). Is it because it needs to be compiled with some flags, or is the haddock on hackage just wrong.
Where can I get an instance for TimeLocale
?
I'm using time
version 1.5.0.1 on OSX.
The following code
import Data.Time.Format (defaultTimeLocale)
errors with
Module ‘Data.Time.Format’ does not export ‘defaultTimeLocale’
In fact I was using version 1.4.2 which doesn't have defaultTimeLocale
installed.
I'm upgrading to 1.5.0.1 ...
I deleted my sandbox, rebuild everything. It's workin now.
For some reason, cabal wasn't using the version I thought it was (1.5) but (1.4) probably from the haskell platform. Uprading fixed the problem.