Skip to content

Commit

Permalink
Fix doctest failure (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyl20 committed Oct 24, 2023
1 parent 4aa0b15 commit 389931f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions haskus-utils-variant/src/lib/Haskus/Utils/Variant.hs
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,7 @@ splitVariant = splitVariant' @as @(Complement xs as) @xs

-- | A value of type "x" can be extracted from (V xs)
type (:<) x xs =
( CheckMember x xs
, Member x xs
( Member x xs
, x :<? xs
)

Expand Down Expand Up @@ -678,7 +677,8 @@ fromVariantFirst = fromVariantAt @(IndexOf a l)
-- >>> fromVariant @Double x
-- <BLANKLINE>
-- ... error:
-- ... `Double' is not a member of '[Int, String, Int]
-- ... Double not found in list:
-- ... '[Int, String, Int]
-- ...
--
fromVariant :: forall a xs.
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-19.9
resolver: lts-20.26

packages:
- haskus-utils-compat/
Expand Down

0 comments on commit 389931f

Please sign in to comment.