Popularity
5.7
Growing
Activity
0.0
Stable
16
3
1

Monthly Downloads: 17
Programming language: Haskell
License: MIT License
Tags: Other    
Latest version: v8.0.0

ramus alternatives and similar packages

Based on the "Other" category.
Alternatively, view ramus alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ramus or a related project?

Add another 'Other' Package

README

Ramus

Ramus is a lightweight FRP-like library heavily inspired by the Elm Signal implementation, in fact, it's a direct port of the purescript-signal library, in Haskell. Where possible and sensible, it tries to maintain API equivalence with Elm.

See the Elm documentation for details on usage and principles.

Haskell Usage Patterns

Haskell depends on IO to manage side effects, where Elm's runtime generally manages them for you. ramus provides the Signal.runSignal function for running effectful signals.

module Main where

import Signal

hello :: Signal String
hello = constant "Hello Joe!"

helloEffect :: Signal (IO ())
helloEffect = hello ~> print

main :: IO ()
main = runSignal helloEffect

This simple example takes a constant signal which contains the string "Hello Joe!" and maps it over the print function, which has the type (Show a) => a -> IO(), thus taking the String content of the signal and turning it into an effect which logs the provided string to the user's console.

This gives us a Signal (IO ()). We use runSignal to take the signal of effects and run each effect in turn—in our case, just the one effect which prints "Hello Joe!" to the console.

API Documentation

Usage Examples

  • TODO