{-# LANGUAGE DataKinds #-}
module Data.Emacs.Module.GetRawValue (GetRawValue(..)) where
import Data.Emacs.Module.Raw.Value
import Data.Emacs.Module.Value.Internal
class GetRawValue a where
getRawValue :: a -> RawValue 'Regular
instance GetRawValue (RawValue 'Regular) where
{-# INLINE getRawValue #-}
getRawValue :: RawValue 'Regular -> RawValue 'Regular
getRawValue = RawValue 'Regular -> RawValue 'Regular
forall a. a -> a
id
instance GetRawValue (Value s) where
{-# INLINE getRawValue #-}
getRawValue :: Value s -> RawValue 'Regular
getRawValue = Value s -> RawValue 'Regular
forall k (s :: k). Value s -> RawValue 'Regular
unValue