packages feed

purescript-0.7.0.0: examples/failing/InstanceExport.purs

module InstanceExport (S(..), f) where

import Prelude

newtype S = S String

class F a where
  f :: a -> String

instance fs :: F S where
  f (S s) = s

module Test where

import InstanceExport

test = f $ S "Test"