Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Using Flix to Solve Constraints on Lattices example in Fixpoints #67

Closed
ninaandrup opened this issue Mar 6, 2022 · 6 comments · Fixed by #82
Closed

Using Flix to Solve Constraints on Lattices example in Fixpoints #67

ninaandrup opened this issue Mar 6, 2022 · 6 comments · Fixed by #82
Assignees

Comments

@ninaandrup
Copy link
Contributor

I cannot get the example to work, when I copy it into VS code.

@magnus-madsen
Copy link
Member

@JonathanStarup Can you take a look?

@ninaandrup Do you get any errors or what do you mean by it does not work?

@ninaandrup
Copy link
Contributor Author

I get a couple of errors.

Missing implementation of 'lessEqual' required by class 'PartialOrder'.

46 | instance PartialOrder[Sign] {

              ^^^^^^^^^^^^
              missing implementation

And from main

>> Parse Error: Invalid input ';', expected "ref", "reify", "reifyBool", "reifyType", "reifyEff", LegalLetter, ':', "->", ArgumentList, '[', '.', "::", ":::", Op, '`', "<+>" or ** (line 105, column 22):
    query p select (r; v) from LocalVar(r; v) |> println;

Because of the ; in (r; v).

@paulbutcher
Copy link
Member

What's involved in rolling out a new version of the website? I just ran into this and spent a while debugging, started putting together a PR to fix the website, and then found that it had already been fixed. Would be nice to save someone else the same busywork.

@paulbutcher
Copy link
Member

While I'm here: any reason why we implement Eq etc by hand instead of simply using with?:

enum Sign with Boxable, Eq, Order, ToString {

@magnus-madsen
Copy link
Member

While I'm here: any reason why we implement Eq etc by hand instead of simply using with?:

enum Sign with Boxable, Eq, Order, ToString {

Don't know.

But, Ill look into uploading the new version.

@magnus-madsen
Copy link
Member

Updated!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants