All hints

All files

Report generated by HLint v3.3.6 - a tool to suggest improvements to your Haskell code.

hs/src/HelVM/HelIO/Collections/MapList.hs:88:19-64: Warning: Functor law
Found
fromIntMap <$> IntMap.insert i e <$> unMapList
Perhaps
fromIntMap . IntMap.insert i e <$> unMapList
hs/src/HelVM/HelIO/Collections/SList.hs:91:44-67: Warning: Functor law
Found
Dual <$> Endo <$> flip f
Perhaps
Dual . Endo <$> flip f
hs/src/HelVM/HelIO/Collections/SList.hs:185:15-44: Warning: Functor law
Found
SList <$> L.cons e <$> unSList
Perhaps
SList . L.cons e <$> unSList
hs/src/HelVM/HelIO/Collections/SList.hs:202:13-40: Warning: Functor law
Found
SList <$> L.tail <$> unSList
Perhaps
SList . L.tail <$> unSList
hs/src/HelVM/HelIO/Collections/SList.hs:205:13-40: Warning: Functor law
Found
SList <$> L.init <$> unSList
Perhaps
SList . L.init <$> unSList
hs/src/HelVM/HelIO/Collections/SList.hs:208:16-46: Warning: Functor law
Found
SList <$> L.reverse <$> unSList
Perhaps
SList . L.reverse <$> unSList
hs/src/HelVM/HelIO/Collections/SList.hs:211:22-58: Warning: Functor law
Found
SList <$> L.intersperse e <$> unSList
Perhaps
SList . L.intersperse e <$> unSList
hs/src/HelVM/HelIO/Collections/SList.hs:226:17-48: Warning: Functor law
Found
SList <$> L.sortBy f <$> unSList
Perhaps
SList . L.sortBy f <$> unSList
hs/src/HelVM/HelIO/Control/Safe.hs:100:28-72: Warning: Functor law
Found
liftSafe <$> maybeToSafe message <$> nonEmpty
Perhaps
liftSafe . maybeToSafe message <$> nonEmpty
hs/src/HelVM/HelIO/Digit/ToDigit.hs:39:21-68: Warning: Functor law
Found
toText <$> S.sListToList <$> makeAsciiString28 l
Perhaps
toText . S.sListToList <$> makeAsciiString28 l
hs/src/HelVM/HelIO/IO/MockIO.hs:43:29-65: Warning: Functor law
Found
pure <$> runMockIO i <$> runBusinessT
Perhaps
pure . runMockIO i <$> runBusinessT
hs/src/HelVM/HelIO/IO/MockIO.hs:106:22-70: Warning: Functor law
Found
fromStrict <$> encodeUtf8 <$> mockGetContentsText
Perhaps
fromStrict . encodeUtf8 <$> mockGetContentsText
hs/src/HelVM/HelIO/IO/MockIO.hs:109:23-63: Warning: Functor law
Found
fromStrict <$> toText <$> mockGetContents
Perhaps
fromStrict . toText <$> mockGetContents