Skip to content

Commit

Permalink
Support dlist 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Jul 19, 2020
1 parent 8d454ff commit 7f76397
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions mono-traversable-instances/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Changelog for mono-traversable-instances

## 0.1.1.0

* Support dlist 1.0

## 0.1.0.0

* Initial release
4 changes: 2 additions & 2 deletions mono-traversable-instances/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mono-traversable-instances
version: 0.1.0.0
version: 0.1.1.0
synopsis: Extra typeclass instances for mono-traversable
description: See docs and README at <http://www.stackage.org/package/mono-traversable-instance>
category: Data
Expand All @@ -18,7 +18,7 @@ dependencies:
- semigroupoids >=3.0
- comonad >=3.0.3
- vector-instances
- dlist >=0.6 && <1.0
- dlist >=0.6 && <1.1
- dlist-instances ==0.1.*
- transformers
- semigroups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ instance SemiSequence (DList a) where
instance IsSequence (DList a) where
fromList = DL.fromList
replicate = DL.replicate
#if MIN_VERSION_dlist(1,0,0)
tailEx = DL.fromList . DL.tail
#else
tailEx = DL.tail
#endif
{-# INLINE fromList #-}
{-# INLINE replicate #-}
{-# INLINE tailEx #-}
Expand Down

0 comments on commit 7f76397

Please sign in to comment.