frpnow-vty-0.2.0.0: Program terminal applications with vty and frpnow!

Copyright(c) Jaro Reinders 2018
LicenseGPL-3
Maintainerjaro.reinders@gmail.com
Safe HaskellNone
LanguageHaskell2010

Control.FRPNow.Vty

Description

This module provides interoperability of FRPNow and the vty terminal UI library.

Synopsis

Documentation

type VEvent = Event Source #

Alias for Event to prevent name clash with Event.

runNowVty Source #

Arguments

:: Config

The vty configuration to use.

-> (EvStream VEvent -> Now (BehaviorEnd Picture a))

A now computation that takes a stream of vty events and produces a behavior of pictures and an ending event.

-> IO a 

Run a Now computation which produced a behavior of type Picture, and draw that on the screen.

runNowVtyPure Source #

Arguments

:: Config

The vty configuration to use.

-> (EvStream VEvent -> Behavior (BehaviorEnd Picture a))

A computation that takes a stream of vty events and produces a behavior of pictures and an ending event.

-> IO a 

Like runNowVty, but does not allow IO.