Skip to content

Conversation

@Yuras
Copy link
Owner

@Yuras Yuras commented Sep 7, 2025

Half of the test suite is disabled because MicroHs doesn't provide Data.ByteString.Lazy. The rest fails in two places (augustss/MicroHs#275):

$ mhs -icompat -iportable_hspec -ilib -r spec/spec.hs 
-------------
anyWord8
should return the current byte
should fail on end of input
-------------
string
should consume the string
should fail on wrong input
-------------
take
should return the first n bytes
-------------
takeWhile
should return bytes according to the predicate
**FAILED**: expected Right "hello", but got Right ""
should return everything is predicate where becomes False
**FAILED**: expected Right "hello", but got Right ""
-------------
lookAhead
should return the next byte
should return Nothing on end of input
should not consume input
-------------
scanWith
should apply the scanner
should resupply scanner when necessary

@Yuras
Copy link
Owner Author

Yuras commented Sep 7, 2025

The whole test suit is green now.

{-# LANGUAGE PackageImports #-}
{-# LANGUAGE CPP #-}

module Data.ByteString.Lazy_
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MicroHs chooses the installed module from bytestring instead of the local one, so I can't use Data.ByteString.Lazy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants