Skip to content

Interesting pattern match failure #1

Description

@mikesol

Using the ffi index at https://github.com/mikesol/purescript-python-ffi-index, I was able to provoke a pattern match failure running Main.purs in this repo. Below is a stack trace. I'm not exactly sure what provokes this, but as the error comes up deep in the Haskell compiler, I thought it'd be interesting to report it here.

Traceback (most recent call last):
  File "/home/meeshkan-abel/mike/paff/.venv/bin/pspy", line 8, in <module>
    sys.exit(cmd_pspy())
  File "/home/meeshkan-abel/mike/paff/.venv/lib/python3.7/site-packages/purescripto/pspy.py", line 20, in cmd_pspy
    wisepy2.wise(pspy)()
  File "/home/meeshkan-abel/mike/paff/.venv/lib/python3.7/site-packages/wisepy2.py", line 117, in parse_arg
    return fn(*args, **kwargs)
  File "/home/meeshkan-abel/mike/paff/.venv/lib/python3.7/site-packages/purescripto/configure.py", line 205, in pspy
    mod = import_module("{}.{}.pure".format(conf.PyPack, conf.EntryModule))
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/meeshkan-abel/mike/pjx/pjx/Main/pure.py", line 3, in <module>
    __ps__ = LoadPureScript(__file__, __name__)
  File "/home/meeshkan-abel/mike/paff/.venv/lib/python3.7/site-packages/purescripto/purescript_loader.py", line 45, in LoadPureScript
    exec(code, man_made_globals)
  File "src/Main.purs", line 1, in pjx.Main.pure$
    module Main where
  File "src/Main.purs", line 19, in None
    result <- AX.request r
  File ".spago/affjax/v10.1.0/src/Affjax.purs", line 1, in None
    module Affjax
  File ".spago/affjax/v10.1.0/src/Affjax.purs", line 243, in None
    ResponseFormat.Ignore coe -> const $ coe (pure unit)
Exception: Failed pattern match at pjx.Affjax.pure (line 237, column 18 - line 243, column 57): ps_Json

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions