dvberkel/microkanren/1.1.0

NOTE: the latest version is 1.2.0

MicroKanren

Visualization of μKanren goals

Types

type Message
= TakeFromStream

Message a StreamModel can react to

type alias StreamModel a =
{ name : String
, seenStates : List (State a)
, stream : Stream a
}

Keep track of a Stream.

Constructor

streamModelFromGoal : String -> Goal a -> StreamModel a

Create a StreamModel from a Goal.

Elm Architecture

update : Message -> StreamModel a -> StreamModel a

Update the StreamModel according to the received Message

view : (a -> String) -> StreamModel a -> Html Message

Represent a StreamModel.

This needs a way to visualize the generic parameter. It is provided as funtion with signature (a -> String).