• + 0 comments

    Using Data.Map or even Data.Map.Strict is not enough for Haskell. You need to either use Data.IntMap.Strict or Data.HashMap.Strict, enable the {-# LANGUAGE Strict #-} extension, and use ByteString instead of String.