purescript-book
purescript-book copied to clipboard
Chapter 7 Build Issue
Ran into an issue with trying to build chapter 7
cd C:\chapter7
bower update
pulp build
I got the following error message
Error found:
in module Data.AddressBook.Validation
at C:\chapter7\src\Data\AddressBook\Validation.purs line 31, column 3 - line 38, column 6
Could not match type
{ unicode :: Boolean
, sticky :: Boolean
, multiline :: Boolean
, ignoreCase :: Boolean
, global :: Boolean
}
with type
RegexFlags
while checking that type { unicode :: Boolean
, sticky :: Boolean
, multiline :: Boolean
, ignoreCase :: Boolean
, global :: Boolean
}
is at least as general as type RegexFlags
while checking that expression { unicode: false
, sticky: false
, multiline: false
, ignoreCase: false
, global: false
}
has type RegexFlags
in value declaration phoneNumberRegex
See https://github.com/purescript/purescript/wiki/Error-Code-TypesDoNotUnify for more information,
or to contribute content related to this error.
* ERROR: Subcommand terminated with exit code 1
I hadn't altered anything and there isn't a type definition in the module for the "RegexFlags" type to work off of debugging. Could this be a setup issue on my side of things?
Hmm, this works for me, so I'm not sure what's gone wrong here. Maybe you should try using the latest code on the 0.11.3 branch until that version is released.