Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

chapter 6.8 in version 12.0 #139

Open
elephanter opened this issue Sep 1, 2018 · 0 comments
Open

chapter 6.8 in version 12.0 #139

elephanter opened this issue Sep 1, 2018 · 0 comments

Comments

@elephanter
Copy link

instance streamString :: Stream String Char where
  uncons = String.uncons

Failed to compile with error "Could not match type CodePoint with type Char"
I have to replace that code into

instance streamString :: Stream String Char where
    uncons "" =  Nothing
    uncons s = Just {head: charAt 0 s, tail: String.drop 1 s}

to make it work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant