PSA: When using the #GHC API, the `setSessionDynFlags` function will modify the DynFlags, so be sure to discard the old DynFlags and use `getSessionDynFlags` if you need them again later.
Thanks to Rodrigo Mesquita for helping me figure this out!
While declaring peace and justice advocates are terrorist organizations, while outlawing international law authority of the United Nations, US profiteers’ recruitment increases to expand their presence in Gaza for trapping Palestinians next month. Happy Christmas. Great reporting from DropSite News.
#Gaza #UGSolutions #NorthCarolina #GHC #CAIR
#GHC #Webinar on #Clean/GreenAmmonia
for #Agriculture & #Shipping in #California
#Nov12,2025 | 8:30–10:00 AM PT
A simple way to narrow down outdated #nixpkgs options I might be using for my config for a specific module and also get better with #nix
nix eval .#nixosConfigurations.thinkpadTest-vm.config.disko.devices >repl.txt
and test it on repl
not sure how synced they re with #ghc updates though
pfa
Ghc now runs in your browser
GHC now runs in the browser
https://discourse.haskell.org/t/ghc-now-runs-in-your-browser/13169
#HackerNews #GHC #Browser #Haskell #Programming #WebAssembly #Technology
🌗 GHC 現在可在瀏覽器中運行:Haskell 語法檢查器與程式碼執行器的新里程碑
➤ Haskell 開發環境邁入新紀元,無需安裝即可在瀏覽器中體驗 GHC 的強大功能
✤ https://discourse.haskell.org/t/ghc-now-runs-in-your-browser/13169
Haskell 社羣的 TerrorJack 分享了一項重大進展:GHC(Haskell 編譯器)現已能完全在瀏覽器端運行。此技術突破藉由 GHC 的 WebAssembly(WASM)後端實現,讓使用者無需安裝即可在瀏覽器中體驗 Haskell 程式碼的編譯、型別檢查與執行。雖然目前版本主要透過位元組碼直譯執行,並在啟動時需要下載約 50MB 的檔案,可能導致短暫的介面凍結,且部分功能(如 C 編譯器呼叫)受限,但這為建立線上 Haskell 教學平臺、互動式開發環境等應用開啟了無限可能。社羣成員對此表示高度讚賞,並對未來支援更多套件、Cabal 或 Agda 在瀏覽器中的應用表達了期待。
+ 這真是太棒了
#Haskell #WebAssembly #GHC #瀏覽器應用
After a long wait, GHC 9.14.1-rc1 is now available. This includes an important fix which ensures compatibility with macOS 26 and later. We expect that this same fix will be backported to GHC 9.12 and 9.10 in the coming months.
Happy Haskelling!
https:/ /www.haskell.org/ghc/blog/20251030-ghc-9.14.1-rc1-released.html
The miniature Hindley-Milner inference tool I made for students now works in browsers, see https://exaexa.github.io/minihm/
Looks like GHC's WASM backend is quite happy nowadays. Will try better apps.
#GHC now runs in your browser (via #WASM)!
https://discourse.haskell.org/t/ghc-now-runs-in-your-browser/13169?u=jaror
Ha its so obvious
#GHC’s unused field warning does not depend on how many times or when you access a field at runtime, but on whether the compiler sees any usage of that field in the code at compile time.
haskell - Do you have to declare a function's type? - Stack Overflow
" #GHC (and standard Haskell) will only infer polymorphic types with top-level foralls, which are normally left entirely implicit. (They can be written explicitly using ExplicitForAll.) If you need to pass a polymorphic function as an argument to another function like (forall t. …) -> … using RankNTypes, this requires an annotation to override the compiler’s assumption that you meant something like forall t. (… -> …), or that you mistaken"
https://stackoverflow.com/questions/66067358/do-you-have-to-declare-a-functions-type#:~:text=GHC%20(and%20standard,that%20you%20mistakenly
OAuth2 and OpenID Connect in #Haskell
https://broch.tech/posts/oauth2-openid-connect-haskell/
stumbled on it as I was struggling my way (bellow , auth my hakyll client from #mastodon)
let body =
reqBodyUrlEnc $
"client_id" =: (T.pack clientID)
<> "client_secret" =: (T.pack clientSecret)
<> "grant_type" =: ("client_credentials" :: T.Text)
url = https "mathstodon.xyz" /: "oauth" /: "token"
r <- req POST url body jsonResponse mempty
what am i doing wrong here
its mappend from #Monoid typeclass combining id and secret
as (I guess)
clientId and clientSecret are converted to Text (e.g., T.pack clientId)
Text is an instance of the Monoid typeclass
The <> operator concatenates multiple Text values together into one Text value, representing form data or URL-encoded parameters combined
//noob webdev
It was a missed sight on #ghc error message fixed now
// bad
PSA: RequiredTypeArguments, introduced in the upcoming #ghc 9.14 interacts strangely with ScopedTypeVariables. Can you guess what this program prints?
data A s where
A :: forall (s :: Symbol) -> KnownSymbol s => A "bar"
instance Show (A s) where
show (A s) = symbolVal (Proxy @s)
main = print (A "foo")
#Rust Maps more directly to #wasm, (less indirection) has strong, ergonomic interop via wasm-bindgen, JS value conversion, and tooling that auto-generates bindings. Good support for passing typed arrays, closures, and returning JS Promises.
#GHC: interop exists but is more awkward because Haskell values are boxed and require marshaling through the RTS. Tooling and auto-binding generators are less developed
Also due to its ownership model for memory it generates smaller binaries, besides nearly no runtime
feature flags are
enabled globally in our
wasi-sdk build, passed at
GHC configure time, and the wasm NCG may make use of the features. The
rationale of post-MVP wasm feature inclusion
#ghc #webassembly
https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta
TIL: parallel sparks can take up to 20 ms to be scheduled, so you should not use them for small computations.
Thing about a cabal file build-depends of which has base > 4.5 -5 while #ghc has to 865
Its not doable
Should I change the base version here to on this ghc comes with and expect the exec to not break
https://github.com/haskell/cabal/issues/5415
#haskell
new nuisance of latest #ghc on #nixos on #stack resolver
Currently, there is no official Stackage LTS or nightly resolver that uses GHC 9.8.4 as of August 2025. The latest LTS snapshot (as of August 2025) uses GHC 9.10.x, and previous LTS or nightly snapshots available only go up to GHC 9.8.2. Some users have tried to set the resolver manually in stack.yaml with ghc-9.8.4, but official support is not available, and this can lead to issues with tooling such as Haskell Language Server (HLS), which often lags behind GHC releases, and other tooling compatibility problems.
https://discourse.haskell.org/t/unable-to-get-hls-to-work-while-having-lens-and-random-as-dependencies/11816