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

Added Haskell version #4

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

lonetech
Copy link
Contributor

@lonetech lonetech commented Mar 2, 2024

Haskell implementation. This showcases a couple of GHC features, in particular I do not believe there is a standard way to delay (there is however a read with timeout).

A fully standard compliant program without the delay can be accomplished by removing four lines: the shebang, the NumericUnderscores extension, and the references to threadDelay.

All types were left for the compiler to infer. There's only one choice, the type for the countdown.

Haskell implementation. This showcases a couple of GHC features, in particular I do not believe there is a standard way to delay (there is however a read with timeout). 

A fully standard compliant program without the delay can be accomplished by removing four lines: the shebang, the NumericUnderscores extension, and the references to threadDelay. 

All types were left for the compiler to infer. There's only one choice, the type for the countdown.
@c4augustus c4augustus merged commit e884d65 into proglangbase:main Mar 4, 2024
@lonetech lonetech deleted the bbhw-haskell branch June 19, 2024 09:01
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