3 ms·
What is concept is the: newtype Name = Name { unwrapName :: String } (unwrapName -> name) I'm not familiar with this, are you pattern matching on a fun
by codygman 12y ago
What is concept is the:
newtype Name = Name { unwrapName :: String }
(unwrapName -> name)
I'm not familiar with this, are you pattern matching on a function type?
- dezgeg 12y agoIt's the View Patterns extension: https://ghc.haskell.org/trac/ghc/wiki/ViewPatterns https://ghc.haskell.org/trac/ghc/wiki/ViewPatterns