mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
75032a7164
* Emit warning for fixities with no export modifiers This is to help update all the existing code to program with explicit fixity export directives in preparation for the behavioral change where they will become private by default.
24 lines
391 B
Idris
24 lines
391 B
Idris
module Test
|
|
|
|
private
|
|
infixr 5 ~:>
|
|
|
|
public export
|
|
infixr 5 ~>
|
|
export
|
|
infixl 5 |>
|
|
|
|
public export
|
|
record HasComp (x : Type) where
|
|
constructor MkComp
|
|
(~:>) : x -> x -> Type
|
|
comp : {0 a, b, c : x} -> a ~:> b -> b ~:> c -> a ~:> c
|
|
|
|
public export
|
|
(~>) : (s : HasComp a) => a -> a -> Type
|
|
(~>) = (~:>) s
|
|
|
|
export
|
|
typesHaveComp : HasComp Type
|
|
typesHaveComp = MkComp (\x, y => x -> y) (flip (.))
|