Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. shares :: Maybe (Int, L.ByteString) -> Maybe Int
  2. shares a =
  3. case a of
  4. Nothing -> Nothing
  5. Just (x, y) -> Just x
  6.  
  7. shares :: Maybe (Int, L.ByteString) -> Maybe Int
  8. shares Nothing = Nothing
  9. shares Just (x, y) = Just x
  10.  
  11. Equations for ‘shares’ have different numbers of arguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement