This is necessary, as otherwise you get overlapping instances with GHC 8
I also renamed fromString :: String -> Word to stringToWord, because I think it's confusing to have both a local fromString along with Data.String.fromString. In particular, on first sight of the instance, it looked a lot like an infinite loop!
instance Data.String.IsString Word where
fromString = fromString
This is necessary, as otherwise you get overlapping instances with GHC 8
I also renamed
fromString :: String -> Word
tostringToWord
, because I think it's confusing to have both a localfromString
along withData.String.fromString
. In particular, on first sight of the instance, it looked a lot like an infinite loop!