proto-lens-protoc-0.1.0.2: Protocol buffer compiler for the proto-lens library.

Safe HaskellSafe
LanguageHaskell2010

Data.ProtoLens.Compiler.Combinators

Contents

Description

Some utility functions, classes and instances for nicer code generation with haskell-src-exts.

In particular, we define orphan instances of IsString for various syntax datatypes, with some intelligence about Haskell names. For example, "foo" :: Exp is treated as a variable and Foo :: Exp is treated as a constructor.

Synopsis

Documentation

class App a where Source #

Application of a Haskell type or expression to an argument. For example, to represent f x y, you can write

"f" @@ "x" @@ "y"

Minimal complete definition

(@@)

Methods

(@@) :: a -> a -> a infixl 2 Source #

Instances

App Type Source # 

Methods

(@@) :: Type -> Type -> Type Source #

App Exp Source # 

Methods

(@@) :: Exp -> Exp -> Exp Source #

isIdentChar :: Char -> Bool Source #

Whether this character belongs to an Ident (e.g., "foo") or a symbol (e.g., "$").

match :: Name -> [Pat] -> Exp -> Match Source #

A simple clause of a function binding.

Orphan instances