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

chapter 6.8 in version 12.0 #139

@elephanter

Description

@elephanter
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions