[Haskell-cafe] Using Data.String.Conversions

Galaxy Being borgauf at gmail.com
Tue Jun 29 22:39:42 UTC 2021


I would simply like to use Data.String.Conversions, specifically the
cs function
while I'm in my global ghci REPL. Here's the code I'm working on (from here
<https://zacwood.me/posts/2020-12-29-dates-ihp/>)

parseDay' :: String -> Maybe Day
parseDay' = parseTimeM True defaultTimeLocale "%Y-%m-%d"

then

mydate = getCurrentTime

(Data.Time imported just fine.)

parseDay' $ takeWhile ('T' /=) (cs mydate)

My problem is I can import and expose Data.Time, but Data.String.Conversions
will not import to my global REPL. Any tips on doing this project-based
would be enlightening too.


⨽
Lawrence Bottorff
Grand Marais, MN, USA
borgauf at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210629/7c66f3ca/attachment.html>


More information about the Haskell-Cafe mailing list