Skip to content

Commit

Permalink
update rerefined, strongweak
Browse files Browse the repository at this point in the history
  • Loading branch information
raehik committed Oct 13, 2024
1 parent 867362a commit b020111
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions binrep.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ library
, generic-type-functions >=0.1.0 && <0.2
, ghc-bignum ==1.3.*
, parser-combinators >=1.3.0 && <1.4
, rerefined >=0.6.0 && <0.7
, strongweak >=0.9.1 && <0.10
, rerefined >=0.8.0 && <0.9
, strongweak >=0.10.0 && <0.11
, text >=2.0 && <2.2
, text-builder-linear >=0.1.3 && <0.2
, type-level-bytestrings >=0.1.0 && <0.3
Expand Down Expand Up @@ -151,8 +151,8 @@ test-suite spec
, hspec >=2.7 && <2.12
, parser-combinators >=1.3.0 && <1.4
, quickcheck-instances >=0.3.26 && <0.4
, rerefined >=0.6.0 && <0.7
, strongweak >=0.9.1 && <0.10
, rerefined >=0.8.0 && <0.9
, strongweak >=0.10.0 && <0.11
, text >=2.0 && <2.2
, text-builder-linear >=0.1.3 && <0.2
, type-level-bytestrings >=0.1.0 && <0.3
Expand Down Expand Up @@ -196,8 +196,8 @@ benchmark bench
, generic-type-functions >=0.1.0 && <0.2
, ghc-bignum ==1.3.*
, parser-combinators >=1.3.0 && <1.4
, rerefined >=0.6.0 && <0.7
, strongweak >=0.9.1 && <0.10
, rerefined >=0.8.0 && <0.9
, strongweak >=0.10.0 && <0.11
, text >=2.0 && <2.2
, text-builder-linear >=0.1.3 && <0.2
, type-level-bytestrings >=0.1.0 && <0.3
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ dependencies:
- generic-data-functions ^>= 0.6.0
- generic-type-asserts ^>= 0.3.0
- generic-type-functions ^>= 0.1.0
- strongweak ^>= 0.9.1
- strongweak ^>= 0.10.0
- defun-core ^>= 0.1

# core instances
- rerefined ^>= 0.6.0
- rerefined ^>= 0.8.0

# types
- type-level-show ^>= 0.3.0
Expand Down
2 changes: 1 addition & 1 deletion src/Binrep/Type/AsciiNat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ instance Predicate (AsciiNat base) where

instance (KnownPredicateName (AsciiNat base), Num a, Ord a)
=> Refine (AsciiNat base) a where
validate = validateVia @(CompareValue GTE Pos 0)
validate = validateVia @(CompareValue RelOpGTE Pos 0)

-- | Compare two 'AsciiNat's, ignoring base information.
asciiNatCompare
Expand Down
4 changes: 2 additions & 2 deletions src/Binrep/Type/Magic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ data Magic a where Magic :: forall {k} (a :: k). Magic a
deriving stock (Generic, Data, Show, Eq)

-- | Weaken a @'Magic' a@ to the unit '()'.
instance Weaken (Magic a) where
type Weak (Magic a) = ()
instance Weaken (Magic a) where
type Weakened (Magic a) = ()
weaken Magic = ()

-- | Strengthen the unit '()' to some @'Magic' a@.
Expand Down

0 comments on commit b020111

Please sign in to comment.