1 -- | Interpreter to compute a host-term.
2 module Language.Symantic.Interpreting.Host where
6 -- | Interpreter's data.
7 newtype HostI h = HostI { unHostI :: h }
8 instance Functor HostI where
9 fmap f (HostI a) = HostI (f a)
10 instance Applicative HostI where
12 (HostI f) <*> (HostI a) = HostI (f a)
13 instance Monad HostI where
18 host_from_term :: HostI h -> h
19 host_from_term = unHostI