Show
Ignore:
Timestamp:
01/17/06 11:12:53 (3 years ago)
Author:
audreyt
Message:

* The deriving error has nothing to do with envImplicit

(and everything to do with PerlSV had a duplicate YAML
instance) -- fix it correctly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Embed/Perl5.hs

    r7579 r8714  
    44module Pugs.Embed.Perl5 where 
    55import Foreign.C.Types 
     6import Data.Typeable 
    67 
    78type PerlInterpreter = () 
    8 type PerlSV = () 
    9 type PugsVal = () 
     9data PerlSV = MkPerlSV -- phantom type 
     10    deriving (Show, Eq, Ord, Typeable) 
     11type PugsVal = PerlSV 
    1012 
    1113constFail :: a -> IO b 
     
    3739 
    3840mkVal :: (Show a) => a -> IO PugsVal 
    39 mkVal = const $ return () 
     41mkVal = constFail 
    4042 
    4143mkValRef :: a -> IO PerlSV 
    42 mkValRef = const $ return () 
     44mkValRef = constFail 
    4345 
    4446vstrToSV :: String -> IO PerlSV