You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should enable the existing-class pragma for postulated type classes:
postulateMyShow :Set->Setmyshow : {{ MyShow a }} -> a -> String
{-# COMPILE MyShow existing-class #-}ok : {{ MyShow a }} -> a -> String
ok = myshow
Currently MyShow is not considered a class (since #284), and thus the instance arguments get turned into regular Haskell arguments and not class constraints:
ok :MyShow a -> a ->String
ok x = myshow x
The text was updated successfully, but these errors were encountered:
flupe
added a commit
to flupe/agda2hs
that referenced
this issue
Oct 1, 2024
We should enable the
existing-class
pragma for postulated type classes:Currently
MyShow
is not considered a class (since #284), and thus the instance arguments get turned into regular Haskell arguments and not class constraints:The text was updated successfully, but these errors were encountered: