Skip to content

Commit

Permalink
Compatibility with old bytestring < 0.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia committed Jan 25, 2024
1 parent eda4943 commit 3a1e3a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Tests/Properties/Validate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ import Tests.QuickCheckUtils ()
#if MIN_VERSION_bytestring(0,12,0)
import Data.ByteString.Short (unShortByteString)
#else
#if MIN_VERSION_bytestring(0,11,1)
import Data.ByteString.Short (ShortByteString(SBS))
#else
import Data.ByteString.Short.Internal (ShortByteString(SBS))
#endif
import Data.Array.Byte (ByteArray(ByteArray))

unShortByteString :: ShortByteString -> ByteArray
Expand Down

0 comments on commit 3a1e3a6

Please sign in to comment.