-
Notifications
You must be signed in to change notification settings - Fork 25
Updates for 0.12 #85
Updates for 0.12 #85
Conversation
| derive instance eqTextBox ∷ (Functor f, Eq (f String), Eq (f HN.HugeNum), Eq (f DT.Time), Eq (f DT.Date), Eq (f DT.DateTime)) ⇒ Eq (TextBox f) | ||
| derive instance ordTextBox ∷ (Functor f, Ord (f String), Ord (f HN.HugeNum), Ord (f DT.Time), Ord (f DT.Date), Ord (f DT.DateTime)) ⇒ Ord (TextBox f) | ||
| derive instance eqTextBox ∷ (Functor f, Eq (f String), Eq (f D.Decimal), Eq (f DT.Time), Eq (f DT.Date), Eq (f DT.DateTime), Eq1 f) ⇒ Eq (TextBox f) | ||
| derive instance ordTextBox ∷ (Functor f, Ord (f String), Ord (f D.Decimal), Ord (f DT.Time), Ord (f DT.Date), Ord (f DT.DateTime), Ord1 f) ⇒ Ord (TextBox f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this but I had to add Eq1 and Ord1 here to get this to type check.
I'm seeing this test failure locally:
Original:
(Right (SlamDown ((Paragraph ((FormField "name" false (TextBox (PlainText (Compose (Just (Literal "Phil Freeman")))))) : Nil)) : Nil)))
Printed:
(Right "name = ______ (Phil Freeman)\n")
Parsed:
(Right (SlamDown ((Paragraph ((FormField "name" false (TextBox (PlainText (Compose (Just (Literal "Phil Freeman")))))) : Nil)) : Nil)))
/Users/py/projects/slamdata/purescript-markdown/output/Data.Eq/index.js:13
var Eq1 = function (eq1) {
^
RangeError: Maximum call stack size exceeded
at new Eq1 (/Users/py/projects/slamdata/purescript-markdown/output/Data.Eq/index.js:13:20)
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:90:16
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:84:66
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:91:59
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:84:77
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:91:59
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:84:77
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:91:59
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:84:77
at /Users/py/projects/slamdata/purescript-markdown/output/Data.Functor.Compose/index.js:91:59
* ERROR: Subcommand terminated with exit code 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, not a test failure 😄
|
FWIW I opened purescript-contrib/purescript-precise#13 so we could keep using that if necessary. |
|
This now depends on my PR for Still getting a stack overflow: |
|
|
||
| derive instance eqTextBox ∷ (Functor f, Eq (f String), Eq (f HN.HugeNum), Eq (f DT.Time), Eq (f DT.Date), Eq (f DT.DateTime)) ⇒ Eq (TextBox f) | ||
| derive instance ordTextBox ∷ (Functor f, Ord (f String), Ord (f HN.HugeNum), Ord (f DT.Time), Ord (f DT.Date), Ord (f DT.DateTime)) ⇒ Ord (TextBox f) | ||
| derive instance eqTextBox ∷ (Functor f, Eq (f String), Eq (f HN.HugeNum), Eq (f DT.Time), Eq (f DT.Date), Eq (f DT.DateTime), Eq1 f) ⇒ Eq (TextBox f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be
derive instance eqTextBox :: (Functor f, Eq1 f) => Eq (TextBox f)
derive instance ordTextBox :: (Functor f, Ord1 f) => Ord (TextBox f) |
The fact travis is unhappy is very interesting, I'm not absolutely sure, but this might be somehow connected with |
| derive instance eqTextBox ∷ (Functor f, Eq (f String), Eq (f HN.HugeNum), Eq (f DT.Time), Eq (f DT.Date), Eq (f DT.DateTime)) ⇒ Eq (TextBox f) | ||
| derive instance ordTextBox ∷ (Functor f, Ord (f String), Ord (f HN.HugeNum), Ord (f DT.Time), Ord (f DT.Date), Ord (f DT.DateTime)) ⇒ Ord (TextBox f) | ||
| derive instance eqTextBox ∷ (Functor f, Eq1 f) ⇒ Eq (TextBox f) | ||
| derive instance ordTextBox ∷ (Functor f, Ord1 f) ⇒ Ord (TextBox f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is the code relating to the stack overflow.
|
I'll take a look! |
|
Ok, after much head scratching, it's a problem with I'll push some other changes into this branch though, as a lot of the |
Improve constraints, bump -functors for `Compose` fix, remove StrongCheck/generated stuff
|
I think this should be good now. Thanks @garyb! |
There are a few things to discuss here, which I'll point out.
I think the biggest change is usingsharkdp/purescript-decimalsinstead ofpurescript-contrib/purescript-precise. The former seems better maintained but has a JavaScript dependency.