News for hackers. Stuff that matters.
Re:Type-machine by bradrn on Wednesday August 20, 2025 @02:05AM (#44959088)
> Thankfully, in GHC 7.4.1 was introduced the record syntax, which allows naming fields, like this […]

What on Earth? Record syntax has been around since the very first versions of Haskell. This is a surprisingly blatant error to see so near the beginning of this article…

Re:Type-machine by gylterud on Wednesday August 20, 2025 @02:28AM (#44959216)
I guess they were confused by the GHc documentation which says that the language option TraditionalRecordSyntax was introduced then, and enabled by default. Of course, the actual syntax was always part of the language. There just wasn’t an explicit option to enable/disable it.
Re:Type-machine by throwaway290 on Wednesday August 20, 2025 @06:31AM (#44960588)
Or didn't verify what LLM wrote
Re:Type-machine by mpoteat on Wednesday August 20, 2025 @03:18AM (#44959487)
Look at what they need to mimic a fraction of our power.
Re:Type-machine by worldsayshi on Wednesday August 20, 2025 @03:44AM (#44959649)
I wish for a language that combines the strengths of Haskell and Typescript. I suppose PureScript isn't that?

https://www.purescript.org/

Re:Type-machine by Ciantic on Wednesday August 20, 2025 @06:24AM (#44960560)
I'm looking at https://roc-lang.org Maybe once it matures, it could have the strengths of TypeScript and Haskell.
Re:Type-machine by behnamoh on Wednesday August 20, 2025 @09:50AM (#44961951)
No language is going to replace mainstream languages if it comes with minimal libraries. PS and similar langs are nice efforts but unfortunately pointless.
Re:Type-machine by akoboldfrying on Wednesday August 20, 2025 @06:33AM (#44960599)
Discovering that Template Haskell exists was important to younger me. Its existence means Smart People have concluded that there are notions of abstraction that can't be adequately captured in regular Haskell, which freed me from the persistent feeling that my inability to express something nicely in regular Haskell was due to some inadequacy in myself. I could at last relax, and despise the language.

Also, Haskell? You can take your space leaks and shove them.

Re:Type-machine by lgas on Wednesday August 20, 2025 @02:57PM (#44965045)
> Its existence means Smart People have concluded that there are notions of abstraction that can't be adequately captured in regular Haskell,

...yet.

Re:Type-machine by tome on Wednesday August 20, 2025 @03:18PM (#44965297)
> Also, Haskell? You can take your space leaks and shove them.

In case any passers by are interested, space leaks are a solved problem: make invalid laziness unrepresentable (https://h2.jaguarpaw.co.uk/posts/make-invalid-laziness-unrep...)

Re:Type-machine by drumnerd on Wednesday August 20, 2025 @08:23AM (#44961246)
So a little bit of syntax is verbose, goes on to invent a whole new syntax for it