lovasko/goat

View on GitHub

Showing 2 of 2 total issues

Use <$>
Open

  get = do
    x   <- getMaybeOf getWord32be
    len <- getWord32be
    bs  <- aiGetByteString
    return $ ValueFrame x len bs
Severity: Minor
Found in src/Codec/Goat/ValueFrame/Types.hs by hlint

Found

do x <- getMaybeOf getWord32be
   len <- getWord32be
   bs <- aiGetByteString
   return $ ValueFrame x len bs

Perhaps

do x <- getMaybeOf getWord32be
   len <- getWord32be
   ValueFrame x len <$> aiGetByteString

Use <$>
Open

  get = do
    x   <- getMaybeOf getWord32be
    y   <- getMaybeOf getWord32be
    len <- getWord32be
    bs  <- aiGetByteString
Severity: Minor
Found in src/Codec/Goat/TimeFrame/Types.hs by hlint

Found

do x <- getMaybeOf getWord32be
   y <- getMaybeOf getWord32be
   len <- getWord32be
   bs <- aiGetByteString
   return $ TimeFrame x y len bs

Perhaps

do x <- getMaybeOf getWord32be
   y <- getMaybeOf getWord32be
   len <- getWord32be
   TimeFrame x y len <$> aiGetByteString
Severity
Category
Status
Source
Language