acme-hq9plus-0.1: An embedded DSL for the HQ9+ programming language

Portabilitybase >= 4.5, FlexibleInstances, GADTs
Maintainerjoeyadams3.14159@gmail.com
Safe HaskellSafe-Infered

Acme.HQ9Plus

Contents

Description

An embedded DSL for the HQ9+ programming language. For more information, see http://esolangs.org/wiki/HQ9.

Synopsis

The HQ monad

data HQ a Source

Instances

runHQ :: HQ a -> IO aSource

Run an HQ computation.

Operations

h :: HQ ()Source

Print "Hello, world!"

q :: HQ ()Source

Print the program's source code.

nine :: HQ ()Source

Print the lyrics to "99 Bottles of Beer". May also be written as 9.

plus :: HQ ()Source

Increment the accumulator.

(+) :: HQ ()Source

An infix alias for plus.