Skip to content

Commit

Permalink
Merge pull request #20 from stefan-hoeck/export_infix
Browse files Browse the repository at this point in the history
[ compat ] add export modifier to operator decls
  • Loading branch information
stefan-hoeck authored Apr 5, 2024
2 parents f60b0da + 6c5c59e commit 829f44b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Algebra/Group.idr
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import Syntax.PreorderReasoning
-- "Operators"
--------------------------------------------------------------------------------

infixl 8 `p`,`sub`
export infixl 8 `p`,`sub`

infixl 9 `m`
export infixl 9 `m`

--------------------------------------------------------------------------------
-- Laws
Expand Down
2 changes: 1 addition & 1 deletion src/Algebra/Solver/Ops.idr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Algebra.Solver.Ops

import public Data.List.Elem

infixl 8 .+>, <+., .+.
export infixl 8 .+>, <+., .+.

||| Checks if elements `x` and `y` are at the same position in list
||| `xs` and thus identical.
Expand Down
4 changes: 2 additions & 2 deletions src/Algebra/Solver/Semiring.idr
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public export
var : {0 as : List a} -> (x : a) -> Elem x as => Expr a as
var x = Var x %search

infixl 8 .+., .+, +.
export infixl 8 .+., .+, +.

infixl 9 .*., .*, *.
export infixl 9 .*., .*, *.

||| Addition of variables. This is an alias for
||| `var x + var y`.
Expand Down

0 comments on commit 829f44b

Please sign in to comment.