Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove re-export of Haskell.Law modules from Haskell.Prelude
Browse files Browse the repository at this point in the history
jespercockx authored and viktorcsimma committed Dec 27, 2023
1 parent b46b901 commit 9a7b90b
Showing 5 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/Haskell/Extra/Dec.agda
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Haskell.Extra.Dec where

open import Haskell.Prelude hiding (Reflects)
open import Haskell.Prelude
open import Haskell.Extra.Refinement
open import Agda.Primitive

12 changes: 0 additions & 12 deletions lib/Haskell/Prelude.agda
Original file line number Diff line number Diff line change
@@ -39,18 +39,6 @@ open import Haskell.Prim.Traversable public
open import Haskell.Prim.Tuple public hiding (first; second; _***_)
open import Haskell.Prim.Word public

open import Haskell.Law public
open import Haskell.Law.Applicative public
open import Haskell.Law.Bool public
open import Haskell.Law.Eq public
open import Haskell.Law.Equality public
open import Haskell.Law.Functor public
open import Haskell.Law.List public
open import Haskell.Law.Maybe public
open import Haskell.Law.Monad public
open import Haskell.Law.Monoid public
open import Haskell.Law.Ord public

-- Problematic features
-- - [Partial]: Could pass implicit/instance arguments to prove totality.
-- - [Float]: Or Float (Agda floats are Doubles)
1 change: 1 addition & 0 deletions test/HeightMirror.agda
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

open import Haskell.Prelude hiding (max)
open import Haskell.Law.Equality

subst : {p : @0 a Set} {@0 m n : a} @0 m ≡ n p m p n
subst refl t = t
1 change: 1 addition & 0 deletions test/LawfulOrd.agda
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
open import Haskell.Prelude
open import Haskell.Law

data Ordered (a : Set) : Set where
Gt : ⦃ @0 iOrd : Ord a ⦄ (a' : a) (a'' : a) ⦃ @0 pf : (a' > a'') ≡ True ⦄ Ordered a
4 changes: 4 additions & 0 deletions test/golden/Haskell/Extra/Dec.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Haskell.Extra.Dec where

type Dec = Bool

0 comments on commit 9a7b90b

Please sign in to comment.