Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitives #7

Open
wants to merge 4 commits into
base: full_pipeline
Choose a base branch
from
Open

Conversation

stormeuh
Copy link

I implemented primitive literals, along with addition, subtraction and multiplication on them. These are all demonstrated in Tests/Test5.hs.

Copy link
Owner

@Gertjan423 Gertjan423 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

-- Primitive TyCon Unique
-- ----------------------------------------------------------------------------

intTyConUnique :: Unique
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we ever need this?

data PrimIntOp = PIntAdd
| PIntSub
| PIntMul
-- | PIntEq
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why you dropped equality? That would seem quite useful? :)

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

Successfully merging this pull request may close these issues.

2 participants