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

Chapter 7 Build Issue #64

Open
Tshimanga opened this issue Dec 13, 2016 · 1 comment
Open

Chapter 7 Build Issue #64

Tshimanga opened this issue Dec 13, 2016 · 1 comment

Comments

@Tshimanga
Copy link

Tshimanga commented Dec 13, 2016

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?

@paf31
Copy link
Owner

paf31 commented Jun 11, 2017

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.

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

2 participants