-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I had issues running the code in the Readme. Here are a couple changes that I needed to make using purs 0.12.1.
# add `toUnfoldable` based on this article https://stackoverflow.com/questions/40508767/convert-an-array-to-a-list-in-purescript
import Data.Array (toUnfoldable)
# add `either`
import Data.Either (either)
# Parens need to be added
# V V
isTrue exp = either (\_-> false) ((==) (exp :: List (List String)))
# use `toUnfoldable`
testResult = toUnfoldable $ toUnfoldable <$> [["a", "", "c", ""], ["", "1", "2", "3"], ["x", "field,quoted", "z"], [""]]
Metadata
Metadata
Assignees
Labels
No labels