SHARE
TWEET

Untitled

a guest Aug 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. haskell record type is just syntactic sugar for rank n data type
  2.  ```
  3.  data X = X { foo :: Int, bar :: Char }
  4.  ```
  5.  
  6.  is the same as
  7.  
  8.  ```
  9.  data X = X Int Char
  10.  
  11.  foo :: X -> Int
  12.  foo (X a b) = a
  13.  
  14.  bar :: X -> Char
  15.  bar (X a b) = b
  16.  ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top