rubik / argon

Monitor cyclomatic complexity in Haskell programs
BSD 3-Clause "New" or "Revised" License
97 stars 8 forks source link

Odd error about 'DatatypeContexts' #34

Open hasufell opened 6 years ago

hasufell commented 6 years ago

DatatypeContexts is deprecated anyway and the following file will yield an error, while it compiles perfectly with ghc-8.0.2:

module Foo where

data Show a => Foo a = Foo a

Error:

src/Foo.hs
    error: 3:6 Illegal datatype context (use DatatypeContexts): Show a =>