
29 Jun
2021
29 Jun
'21
10:39 p.m.
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@gmail.com