Fix profunctor record declarations
This commit is contained in:
parent
daf9eaef6e
commit
c8dfbb5189
|
@ -44,7 +44,7 @@ Functor f => Profunctor (Kleislimorphism f) where
|
||||||
-- Examples of profunctors
|
-- Examples of profunctors
|
||||||
|
|
||||||
public export
|
public export
|
||||||
record Star (f : k -> Type) a (b : k) where
|
record Star {0 k : Type} (f : k -> Type) a (b : k) where
|
||||||
constructor MkStar
|
constructor MkStar
|
||||||
applyStar : a -> f b
|
applyStar : a -> f b
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ Functor f => Profunctor (Star f) where
|
||||||
|
|
||||||
|
|
||||||
public export
|
public export
|
||||||
record Costar (f : k -> Type) (a : k) b where
|
record Costar {0 k : Type} (f : k -> Type) (a : k) b where
|
||||||
constructor MkCostar
|
constructor MkCostar
|
||||||
applyCostar : f a -> b
|
applyCostar : f a -> b
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ Functor f => Profunctor (Costar f) where
|
||||||
|
|
||||||
|
|
||||||
public export
|
public export
|
||||||
record Tagged (a : k) b where
|
record Tagged {0 k : Type} (a : k) b where
|
||||||
constructor Tag
|
constructor Tag
|
||||||
getTagged : b
|
getTagged : b
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue