Skip to content
GitLab
Explore
Sign in
Register
Glasgow Haskell Compiler
GHC
Wiki
view patterns
view patterns
· Changes
Page history
shoudn't the constraint use a special arrow?
authored
Apr 10, 2015
by
imz
Hide whitespace changes
Inline
Side-by-side
view-patterns.md
View page @
6df65d81
...
@@ -417,7 +417,7 @@ Of course, you can only use one view function for each hidden-type/view-type pai
...
@@ -417,7 +417,7 @@ Of course, you can only use one view function for each hidden-type/view-type pai
The above implementation of
`size`
is given the following type:
The above implementation of
`size`
is given the following type:
```
wiki
```
wiki
size :: View a TypView
-
> a -> Int
size :: View a TypView
=
> a -> Int
```
```
...
...