Skip to content

haskell-decl-scan doesn't deal with TypeOperators #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ivan-m opened this issue Jan 16, 2014 · 2 comments
Open

haskell-decl-scan doesn't deal with TypeOperators #229

ivan-m opened this issue Jan 16, 2014 · 2 comments

Comments

@ivan-m
Copy link
Contributor

ivan-m commented Jan 16, 2014

When you have a file with the following:

{-# LANGUAGE TypeOperators #-}

type x :^: y = y -> x

haskell-decl-scan will erroneously list this under Datatypes -> x.

I believe it's because this:

(if (looking-at "[ \t]*\\(\\sw+\\)")
              (progn
                (setq name (match-string-no-properties 1))
                (setq name-pos (match-beginning 1))
                (setq type 'datatype)))

just takes the first identifier listed there (without considering whether it's a valid name for a data type).

On the other hand, if we define the datatype as follows:

type (:^:) x y = y -> x

then haskell-decl-scan doesn't pick it up at all.

@gracjan
Copy link
Contributor

gracjan commented Apr 14, 2015

This issue has not seen activity for a very long time. Is this still something we should be concerned about?

@gracjan
Copy link
Contributor

gracjan commented Feb 16, 2016

Related #1122.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants