René's URL Explorer Experiment


Title: purescript/maybe segfaults at runtime · Issue #37 · purescript-python/purescript-python · GitHub

Open Graph Title: purescript/maybe segfaults at runtime · Issue #37 · purescript-python/purescript-python

X Title: purescript/maybe segfaults at runtime · Issue #37 · purescript-python/purescript-python

Description: Is there another package for the Maybe monad that purescript-python supports? In normal purescript, I run spago install maybe to use the Maybe monad. However, if I try to do that with purescript-python, it compiles but segfaults at runti...

Open Graph Description: Is there another package for the Maybe monad that purescript-python supports? In normal purescript, I run spago install maybe to use the Maybe monad. However, if I try to do that with purescript-py...

X Description: Is there another package for the Maybe monad that purescript-python supports? In normal purescript, I run spago install maybe to use the Maybe monad. However, if I try to do that with purescript-py...

Opengraph URL: https://github.com/purescript-python/purescript-python/issues/37

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"purescript/maybe segfaults at runtime","articleBody":"Is there another package for the Maybe monad that purescript-python supports? In normal purescript, I run `spago install maybe` to use the Maybe monad. However, if I try to do that with purescript-python, it compiles but segfaults at runtime.\r\n\r\n```purs\r\nmodule Main where\r\n\r\nimport Prelude\r\n\r\nimport Effect (Effect)\r\nimport Effect.Console (log)\r\n\r\nimport Data.Maybe\r\n\r\nx :: Maybe Int\r\nx = Just 2\r\n\r\ny :: Maybe Int\r\ny = Nothing\r\n\r\nmain :: Effect Unit\r\nmain = do\r\n  log \"🍝\"\r\n  -- Doesn't matter which 3 branches are commented, all segfaults\r\n  --log $ show x\r\n  --log $ show y\r\n  case x of\r\n    Just i -\u003e log $ show i\r\n    Nothing -\u003e log \"nothing\"\r\n\r\n```\r\n\r\n## Steps to reproduce\r\n```\r\ngit clone https://github.com/purescript-python/example-hw\r\ncd example-hw\r\n# See [1]\r\nspago upgrade-set\r\n# See [2]\r\nspago install prelude\r\nspago install maybe\r\n# Edit src/Main.purs as above\r\nspago build \u0026\u0026 pspy --run\r\n```\r\n\r\n## The output\r\n```\r\nCompiling Main\r\nWarning 1 of 2:\r\n\r\n  in module Main\r\n  at src/Main.purs:8:1 - 8:18 (line 8, column 1 - line 8, column 18)\r\n\r\n    Module Data.Maybe has unspecified imports, consider using the explicit form:\r\n\r\n      import Data.Maybe (Maybe(..))\r\n\r\n\r\n\r\n  See https://github.com/purescript/documentation/blob/master/errors/ImplicitImport.md for more information,\r\n  or to contribute content related to this warning.\r\n\r\nWarning 2 of 2:\r\n\r\n  in module Main\r\n  at src/Main.purs:3:1 - 3:15 (line 3, column 1 - line 3, column 15)\r\n\r\n    Module Prelude has unspecified imports, consider using the explicit form:\r\n\r\n      import Prelude (Unit, discard, show, ($))\r\n\r\n\r\n\r\n  See https://github.com/purescript/documentation/blob/master/errors/ImplicitImport.md for more information,\r\n  or to contribute content related to this warning.\r\n\r\n\r\n[info] Build succeeded.\r\nCodegen Python for Main\r\nCodegen Python for Control.Bind\r\nCodegen Python for Control.Applicative\r\nCodegen Python for Control.Apply\r\nCodegen Python for Control.Category\r\nCodegen Python for Control.Semigroupoid\r\nCodegen Python for Data.Function\r\nCodegen Python for Data.Boolean\r\nCodegen Python for Data.Ord\r\nCodegen Python for Data.Eq\r\nCodegen Python for Data.HeytingAlgebra\r\nCodegen Python for Data.Symbol\r\nCodegen Python for Type.Proxy\r\nCodegen Python for Data.Unit\r\nCodegen Python for Data.Show\r\nCodegen Python for Record.Unsafe\r\nCodegen Python for Data.Void\r\nCodegen Python for Data.Ordering\r\nCodegen Python for Data.Semigroup\r\nCodegen Python for Data.Ring\r\nCodegen Python for Data.Semiring\r\nCodegen Python for Data.Functor\r\nCodegen Python for Data.Maybe\r\nCodegen Python for Control.Alt\r\nCodegen Python for Control.Alternative\r\nCodegen Python for Control.Plus\r\nCodegen Python for Control.Extend\r\nCodegen Python for Control.Monad\r\nCodegen Python for Control.MonadZero\r\nCodegen Python for Data.Bounded\r\nCodegen Python for Data.Functor.Invariant\r\nCodegen Python for Data.Monoid.Additive\r\nCodegen Python for Data.Monoid\r\nCodegen Python for Data.EuclideanRing\r\nCodegen Python for Data.BooleanAlgebra\r\nCodegen Python for Data.CommutativeRing\r\nCodegen Python for Prelude\r\nCodegen Python for Data.DivisionRing\r\nCodegen Python for Data.Field\r\nCodegen Python for Data.NaturalTransformation\r\nCodegen Python for Data.Monoid.Alternate\r\nCodegen Python for Control.Comonad\r\nCodegen Python for Data.Newtype\r\nCodegen Python for Data.Monoid.Conj\r\nCodegen Python for Data.Monoid.Disj\r\nCodegen Python for Data.Monoid.Dual\r\nCodegen Python for Data.Monoid.Endo\r\nCodegen Python for Data.Monoid.Multiplicative\r\nCodegen Python for Data.Semigroup.First\r\nCodegen Python for Data.Semigroup.Last\r\nCodegen Python for Safe.Coerce\r\nCodegen Python for Unsafe.Coerce\r\nCodegen Python for Data.Generic.Rep\r\nCodegen Python for Effect\r\nCodegen Python for Effect.Console\r\n🍝\r\n[1]    3845030 segmentation fault (core dumped)  pspy --run\r\n```\r\n\r\n## Expected output\r\n\r\nSame as purescript (Just 2)\r\n\r\n## Appendix\r\n\r\nProbably just the example repo being outdated\r\n\r\n[1] When trying to run `spago build` at this stage, I get this error:\r\n```\r\n[error] Oh noes! It looks like the PureScript version installed on your system is not compatible with the package-set you're using.\r\n\r\ninstalled `purs` version:    0.14.5\r\nminimum package-set version: 0.13.6\r\n\r\nThere are a few ways to solve this:\r\n- install a compatible `purs` version (i.e. in the same 'semver range' as the one in the package set)\r\n- if the `purs` version is 'too new', you can try using `spago upgrade-set` to upgrade to the latest package set\r\n- if you know what you're doing and you want to disable this check, you can override the `version` of the `metadata` package in the packages.dhall, e.g.:\r\n\r\n  let upstream = \u003cpackage-set url here\u003e\r\n  in  upstream\r\n    with metadata.version = \"v0.14.5\"\r\n\r\n```\r\n[2] When trying to run `spago build` at this stage, I get this error\r\n\r\n```\r\n[error] Some of your project files import modules from packages that are not in the direct dependencies of your project.\r\nTo fix this error add the following packages to the list of dependencies in your config:\r\n- prelude\r\nYou may add these dependencies by running the following command:\r\nspago install prelude\r\n```","author":{"url":"https://github.com/akazukin5151","@type":"Person","name":"akazukin5151"},"datePublished":"2021-12-01T14:37:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/37/purescript-python/issues/37"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d3043df0-a1ba-e925-d425-e9f15dad4bb6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD622:9E1F1:CE2D84:12219F5:6970BDE1
html-safe-nonceeed2410c046a65a57b4a7b482781df87b747643560cd6a8d84df8efec98e690c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjIyOjlFMUYxOkNFMkQ4NDoxMjIxOUY1OjY5NzBCREUxIiwidmlzaXRvcl9pZCI6IjUyNzgwMDQ2NjA5Mjc1MTIwMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0882a4d0d2485981f844c62b837f8cc8dce9e6a674436f62cfc695d0c6be5ea1
hovercard-subject-tagissue:1068484555
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-python/purescript-python/37/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f83180e85ea5a4e771608b067ac3005ec572adae93d654287339af028e894fae/purescript-python/purescript-python/issues/37
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f83180e85ea5a4e771608b067ac3005ec572adae93d654287339af028e894fae/purescript-python/purescript-python/issues/37
og:image:altIs there another package for the Maybe monad that purescript-python supports? In normal purescript, I run spago install maybe to use the Maybe monad. However, if I try to do that with purescript-py...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameakazukin5151
hostnamegithub.com
expected-hostnamegithub.com
None8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390
turbo-cache-controlno-preview
go-importgithub.com/purescript-python/purescript-python git https://github.com/purescript-python/purescript-python.git
octolytics-dimension-user_id61223985
octolytics-dimension-user_loginpurescript-python
octolytics-dimension-repository_id240700012
octolytics-dimension-repository_nwopurescript-python/purescript-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id240700012
octolytics-dimension-repository_network_root_nwopurescript-python/purescript-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/purescript-python/purescript-python/issues/37#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-python%2Fpurescript-python%2Fissues%2F37
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-python%2Fpurescript-python%2Fissues%2F37
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=purescript-python%2Fpurescript-python
Reloadhttps://github.com/purescript-python/purescript-python/issues/37
Reloadhttps://github.com/purescript-python/purescript-python/issues/37
Reloadhttps://github.com/purescript-python/purescript-python/issues/37
purescript-python https://github.com/purescript-python
purescript-pythonhttps://github.com/purescript-python/purescript-python
Notifications https://github.com/login?return_to=%2Fpurescript-python%2Fpurescript-python
Fork 3 https://github.com/login?return_to=%2Fpurescript-python%2Fpurescript-python
Star 124 https://github.com/login?return_to=%2Fpurescript-python%2Fpurescript-python
Code https://github.com/purescript-python/purescript-python
Issues 15 https://github.com/purescript-python/purescript-python/issues
Pull requests 0 https://github.com/purescript-python/purescript-python/pulls
Actions https://github.com/purescript-python/purescript-python/actions
Projects 0 https://github.com/purescript-python/purescript-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/purescript-python/purescript-python/security
Please reload this pagehttps://github.com/purescript-python/purescript-python/issues/37
Insights https://github.com/purescript-python/purescript-python/pulse
Code https://github.com/purescript-python/purescript-python
Issues https://github.com/purescript-python/purescript-python/issues
Pull requests https://github.com/purescript-python/purescript-python/pulls
Actions https://github.com/purescript-python/purescript-python/actions
Projects https://github.com/purescript-python/purescript-python/projects
Security https://github.com/purescript-python/purescript-python/security
Insights https://github.com/purescript-python/purescript-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/purescript-python/purescript-python/issues/37
New issuehttps://github.com/login?return_to=https://github.com/purescript-python/purescript-python/issues/37
purescript/maybe segfaults at runtimehttps://github.com/purescript-python/purescript-python/issues/37#top
https://github.com/akazukin5151
https://github.com/akazukin5151
akazukin5151https://github.com/akazukin5151
on Dec 1, 2021https://github.com/purescript-python/purescript-python/issues/37#issue-1068484555
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.