Module
Type.Function
- Package
- typelevel-prelude
- Repository
- purescript/purescript-typelevel-prelude
#FLIP Source
type FLIP :: forall a b. a -> (a -> b) -> btype FLIP a f = f a
Reversed polymorphic Type application
For example...
FLIP Int Maybe == Maybe Int
Note: an infix for FLIP (e.g. Int # Maybe) is not allowed.
Before the 0.14.0 release, we used # Type to refer to a row of types.
In the 0.14.0 release, the # Type syntax was deprecated,
and Row Type is the correct way to do this now. To help mitigate
breakage, # Type was made an alias to Row Type. When the # Type
syntax is fully dropped in a later language release, we can then
support the infix version: Int # Maybe.