diff options
author | quidtum <quidtum> | 2021-05-16 19:25:32 -0400 |
---|---|---|
committer | quidtum <quidtum> | 2021-05-16 19:25:32 -0400 |
commit | a3ba23ea55fa1532180bb1979f60ff174fa09298 (patch) | |
tree | 5e36ce366ebb7728ffe4835a755639e25f322635 /src | |
parent | 00df43e21c408d4915ddce5b6dc78000648df9e5 (diff) |
format, style a
Diffstat (limited to 'src')
-rw-r--r-- | src/Lib.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -818,12 +818,12 @@ collectUntil n f src = Just dst' -> (:) src <$> collectUntil (n-1) f dst' headMay :: [a] -> Maybe a -headMay [] = Nothing +headMay [] = Nothing headMay (x:_) = Just x data HeadException = HeadException deriving (Show) instance E.Exception HeadException mustHead :: [a] -> IO a -mustHead [] = throw HeadException +mustHead [] = throw HeadException mustHead (x:_) = return x |