lovasko/goat

View on GitHub
src/Codec/Goat/TimeFrame/Types.hs

Summary

Maintainability
Test Coverage

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

There are no issues that match your filters.

Category
Status