Update hatter pin: hs_init fix for iOS/watchOS#66
Merged
jappeace merged 1 commit intojappeace:masterfrom Apr 19, 2026
Merged
Conversation
Updates haskell-mobile from 3b1b57f to 62291dc (merged PR #207). Key change: hs_init with argv hangs on iOS/watchOS because defaultRtsConfig has rts_opts_enabled=RtsOptsNone, so passing +RTS -M512m -RTS causes stg_exit(EXIT_FAILURE) which doesn't cleanly terminate on iOS. New hatter_hs_init() uses hs_init_ghc with RtsConfig.rts_opts to set heap limits without argv parsing. Also includes static libffi bundling for iOS/watchOS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
3b1b57fto62291dc(hatter PR #207)hatter_hs_init()which fixes RTS initialization on iOS/watchOSContext
hs_init()with argv containing+RTS -M512m -RTShangs on iOS becausedefaultRtsConfighasrts_opts_enabled=RtsOptsNone, causingstg_exit(EXIT_FAILURE)which doesn't cleanly terminate on iOS. The new
hatter_hs_init()useshs_init_ghc()withRtsConfig.rts_optsto set heap limits via the proper GHC API.Test plan
🤖 Generated with Claude Code