Idris2/tests/idris2/misc/import009/Test.idr
André Videla 75032a7164
Emit warning for fixities with no export modifiers (#3234)
* 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.
2024-04-03 15:41:57 +01:00

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 (.))