H
jackdk: The only reason I can think of is that a simpler interface was chosen to make it easier for users to follow. Type inference for higher rank types is undecidable. GHC is pretty good nowadays with ImpredicativeTypes but it is still complicated, and you will probably run into unexpected limitations. For example the DeepSubsumption extension is a slight change to the type system which had bigger real world implications than anticipated. See the simplify subsumption proposal for examples.…
H
rini: From the documentation of that extension, Rank2Types used to mean a different restriction, and I also can’t see why this type isn’t a rank-1 type. You’re technically right and the type forall r. Request -> (Response -> IO r) -> IO r is itself not a higher rank type. However, there are a few nuances: GHC used to only allow the keyword forall if RankNTypes (or Rank2Types) was enabled. Nowadays you can use ExplicitForAll and write a function signature like this:foo :: forall r. Request ->…
H
Melbourne Compose Group is the monthly in-person meetup for functional programmers in Melbourne, which this month, is on the second Thursday of the month. Our November meeting will be 6:00-8:00 pm Thurs 12th of November at our regular venue, Activity Room 2 at Kathleen Syme Center in Carlton. Arrive from 5:30 for chat and socialising, talks start at 6:30pm. Please RSVP via Luma. Tristan Mc Leay - Mutation Testing With Sydtest Now that use of AI code generation tools has become prevalent, we…
H
Consider read :: forall a. Read a => String → a The forall’d type is the output type. Even if it looks like a return type, but first BEFORE the computation during compile time (except 1 case) it was used as INPUT type. Haskell is a statically-typed language. Inference can’t wait ‘til runtime to find out what some return type is. Hopefully, Haskell ALREADY support Runtime for types (this 1 exception) data E = forall a. MkE [a] lengthE :: E -> Int lengthE (MkE @e xs) = L.length @e xs What I try -…
H
Richly typed programming invariably uses its share of existential types, [quoting from the Motivation] I think that’s not true. There’s a style of Haskell (“Finally tagless”) that deliberately avoids existentials and GADTs. Rust programming doesn’t support GADTs (and I understand has no plans to); you can achieve the effect via overloading and traits — something akin to Haskell type classes and Associated Types. Rust considers type inference for GADTs to be too complex. I wish you would just…
H
VitWW: In Haskel forall quantifier is stands for … input type! I think this is not true. (Or I don’t understand what you’re claiming.) Consider read :: forall a. Read a => String → a The forall’d type is the output type. And it must be Universally quantified, so that whatever calls read can type-safely consume that type. VitWW: during runtime it could be substituted to Monomorphic type. Haskell is a statically-typed language. Inference can’t wait ‘til runtime to find out what some return type…
H
If designing from scratch in 2026, I imagine it would be less controversial to use the higher-rank type. type Application = Request -> (Response -> IO ResponseReceived) -> IO ResponseReceived was first defined in wai-3.0.0, released in 2014. Strangely, Network.Wai enables {-# LANGUAGE Rank2Types #-} but the authors appear to have decided on exposing a simpler interface, so it could not have been chosen to broaden support across Haskell compilers. Even the ancient GHC 6.8 (2007) supports…
H
Is this something to file as a bug, then? I avoided opening an issue on stack because it requires me to test in the latest version, which also wasn’t trivial to get on my system. Thank you for testing though, I am guessing this setup isn’t very common? Is having src+app directories the norm?
H
Specifically, the documentation states “This is to avoid the need for Rank2Types in the definition of Application.” I do vaguely remember why the Application type cannot be simply Request -> IO Response, the explanation being in a talk about wai, but first thing that comes to my mind is changing the type into this: type Application = forall r. Request -> (Response -> IO r) -> IO r Without enabling any extensions, this works on GHC 9.10.3. But seemingly using NoRankNTypes makes it not work, so…
H
With Output Existentials it is possible to write Nat-Vectors: data Nat = Zero | Succ Nat type Vec :: Nat -> Type -> Type data Vec n a where VNil :: Vec Zero a (:>) :: a -> Vec n a -> Vec (Succ n) a infixr 5 :> toVec :: forall a. [a] -> exists (n::Nat). Vec n a toVec [] = therefore @Zero in VNil toVec (x:xs) = therefore @(Succ m) in x :> tvxs where tvxs :: exists m. Vec m a tvxs = toVec xs filterVec :: forall a (n::Nat). (a -> Bool) -> Vec n a -> exists (m::Nat). Vec m a filterVec p VNil =…
H
telorum.codeberg.page Kalesvolgh - changelog we have a changelog page now, and I’m maintaining the changelog regularily now. but, this’ll be my last announcement till we have docs and somewhere close to v1 v0.2.1.4 is now out and introduces a few bug fixes and some important things to moulding which u can check out on the changelog page
H
Kiitos! (Thank you in Finnish) I love to think about Cape Cod every time you talk about Haskell infrastructure It looks like a beautiful place.
H
Looks like everything is back up following a successful operation! Let me know if anything seems amiss.
H
I spent over a year trying to improve my proposal how to easyly implement Existential types into the Haskell. And I have a brilliant idea! In Haskel forall quantifier is stands for … input type! So we add exists quantifer for … output type! ForallType during Typecheck is checked and become Monomorhic by substitutional law. But ExistentialType during Typecheck is checked but remains Polymorphic. And … during runtime it could be substituted to Monomorphic type. Output Existentials do NOT cover…
H
I’m amazed with the type of projects you do after apparently only 1 year of learning Haskell.
H
website is up lol Kalesvolgh - Home (I promise I tried)
H
slow-dive: White adjacent to yellow though? As someone who was into speedcubing once I have to disagree with that choice … I’m also using “Fuchsia” rather than Orange, because I couldn’t think of a better predefined colour pallet than the 16 original HTML named colours, and also didn’t want to fill the video with hex codes. It’s not ideal.
H
An admin will be physically replacing storage devices on an important server. The following services will experience downtime or interruption: gitlab.haskell.org (fully offline) hoogle.haskell.org (fully offline) downloads.haskell.org (mitigated by a CDN) mail to haskell.org addresses (delayed) The work is tentatively planned around 04:00 UTC on October 27. If all goes well, the downtime should be on the order of minutes.
H
For a second I’ve thought you can now make models in tidal notation…
H
Nice! I wish I knew more about 3D modeling to make use of Waterfall-CAD whenever I see these videos. I’ve definitely showed your library to mechanical engineers and went “Look what Haskell can do!” before. (White adjacent to yellow though? As someone who was into speedcubing once I have to disagree with that choice … )
H
it has already been my first year this october
H
Heh funny, I’ll be approaching my fifth year this November
H
I have finished work on adding idempotency token support to Amazonka. These are tokens that you can set to ensure certain requests don’t get acted upon twice if resent. The PR with the service regenerations is PR 1070. To see if a service you care about has changed, see the CHANGELOG.md on the PR branch. If you use idempotency tokens, please comment on PR 1070 that they’re working or not. If you don’t use idempotency tokens, please comment on PR 1070 whether or not I’ve broken Amazonka for you.
H
I’ve just released a short video showing off a new feature in Waterfall-CAD
H
The problem with GitHub’s macos-latest runner has delayed this. (The problem being that the runner marries Xcode 26.6 with Xcode Command Line Tools 27.0.) I am assuming that GitHub will sort itself out, sooner rather than later. If that is correct, I’d rather wait for GitHub than work around it.
H
The following GHC musl docker manifests have been updated to alpine:3.24.3 to include several security fixes across core components. Available from Quay: quay.io/benz0li/ghc-musl:9.14.1 quay.io/benz0li/ghc-musl:9.14.1-int-native quay.io/benz0li/ghc-musl:9.12.4 quay.io/benz0li/ghc-musl:9.12.4-int-native quay.io/benz0li/ghc-musl:9.10.3 quay.io/benz0li/ghc-musl:9.10.3-int-native quay.io/benz0li/ghc-musl:9.8.4 quay.io/benz0li/ghc-musl:9.8.4-int-native quay.io/benz0li/ghc-musl:9.6.7…
H
Hi, thanks for flagging this. We will operate in both the US (2027) and the UK (now), so we can consider hybrid arrangements in either country. The current job descriptions focus on Cambridge, which explains the discrepancy. Happy to discuss where you’re based and what might work. We may also have some fully remote positions coming up. On applying, either route is fine: use the website form or email your CV and cover letter to jobs@aykua.com. No ambiguity trap intended
H
I’m happily using twain with lucid for my small projects (calendar, wiki, blog-engine) - as a Haskell beginner. I switched from Spock (with came from Scotty) to twain while trying to plug a memory leak, which turned out to be caused by the gzip and brotli wai middleware modules, or the way I was using them.
H
Very similar experience/requirement on my side project. Scotty was perfect!