servant-nix-0.1: Servant Nix content-type

Safe HaskellNone
LanguageHaskell2010

Servant.Nix

Synopsis

Documentation

data Nix Source #

UTF-8 text representing a Nix expression

Instances

Accept * Nix Source # 
MimeRender * Nix NExpr Source # 

Methods

mimeRender :: Proxy Nix NExpr -> a -> ByteString #

FromNix a => MimeUnrender * Nix a Source #

NExpr and NExprLocs can be used as request bodies in servant API types.

class FromNix a where Source #

Types that can be parsed out of the text of a Nix expression, i.e NExpr and NExprLoc.

Minimal complete definition

fromNixText

Methods

fromNixText :: Text -> Result a Source #