1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

等式制約を含む型制約の型シノニムは、haskell-src-extsでパース出来ない

Posted at
{-# LANGUAGE ConstraintKinds, TypeFamilies #-}

-- GHCは問題なく処理するが、haskell-src-extsではパース出来ない
type Unavailable a b = (a ~ b)

hoge :: Unavailable a b => a -> b -> a
hoge = undefined

なので、haskell-src-extsを使ったツールなどでパースされる事を期待するソースコードでは関数等の型制約を記述する部分に書こう!

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?