Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. data ShowMe a b
  2.  
  3. data ShowFns =
  4. { showFn1 :: ShowMe Int (ShowMe Bool (ShowMe Double ()))
  5. , showFn2 :: ShowMe Double (ShowMe Char ())
  6. }
  7.  
  8. showFn1 :: Int -> Bool -> Double -> String
  9. showFn1 a b c = show a <> " " <> show b <> " " <> show c
  10.  
  11. showFn2 :: Double -> Char -> String
  12. showFn2 a b = show a <> " " <> show b
  13.  
  14. fnCollection :: ShowFns
  15. fnCollection = ShowFns toShowFns toShowFns
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement