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)

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