| Copyright | (c) Sirui Lu 2021-2023 |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | siruilu@cs.washington.edu |
| Stability | Experimental |
| Portability | GHC only |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
Grisette.Core.Data.Class.Function
Contents
Description
Function operations
class Function f where Source #
Abstraction for function-like types.
Methods
(#) :: f -> Arg f -> Ret f infixl 9 Source #
Function application operator.
The operator is not right associated (like ($)). It is left associated,
and you can provide many arguments with this operator once at a time.
>>>(+1) # 23
>>>(+) # 2 # 35
Instances
| (Function f, Mergeable f, Mergeable a, Ret f ~ a) => Function (UnionM f) Source # | |
| (SupportedPrim a, SupportedPrim b) => Function (a --> b) Source # | |
| (SupportedPrim a, SupportedPrim b) => Function (a -~> b) Source # | |
| (SupportedPrim a, SupportedPrim b) => Function (a =~> b) Source # | |
| Eq a => Function (a =-> b) Source # | |
| Function (a -> b) Source # | |