Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created February 10, 2021 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/42275462474c679dbe3a28d6e67065d6 to your computer and use it in GitHub Desktop.
Save Mic92/42275462474c679dbe3a28d6e67065d6 to your computer and use it in GitHub Desktop.
src/Text/Pandoc/Class/PandocIO.hs:59:20-123: error:
• Couldn't match type ‘time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
with ‘m0 (Maybe Data.Text.Internal.Text)
-> PandocIO time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
Expected type: (String
-> m1 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
-> m0 (Maybe Data.Text.Internal.Text)
-> PandocIO time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime
Actual type: (String
-> m1 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
-> time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime
• The function ‘IO.getCurrentTime’ is applied to two arguments,
but its type ‘(String
-> m1 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
-> time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
has only one
In the expression:
IO.getCurrentTime
(return . posixSecondsToUTCTime . fromIntegral . read)
(lookupEnv "SOURCE_DATE_EPOCH")
In an equation for ‘getCurrentTime’:
getCurrentTime
= IO.getCurrentTime
(return . posixSecondsToUTCTime . fromIntegral . read)
(lookupEnv "SOURCE_DATE_EPOCH")
|
59 | getCurrentTime = IO.getCurrentTime (return . posixSecondsToUTCTime . fromIntegral . read) (lookupEnv "SOURCE_DATE_EPOCH"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment