packages feed

atomo-0.2.1: src/Atomo/PrettyVM.hs

module Atomo.PrettyVM where

import Control.Monad (liftM)
import Atomo.Environment
import Atomo.Types


-- | pretty-print by sending \@show to the object
prettyVM :: Value -> VM String
prettyVM = liftM (fromText . fromString) . dispatch . single "show"