packages feed

purescript-0.15.0: tests/purs/failing/3531.purs

-- @shouldFailWith NoInstanceFound
module Main where

data Proxy a = Proxy

class C a where
  c :: Proxy a -> Boolean

instance c1 :: C String where
  c _ = true
else instance c2 :: C a where
  c _ = false

fn :: forall a. Proxy a -> Int
fn _ = 42 where
  x = c (Proxy :: Proxy a)