Gotta keep a Dict around.

This commit is contained in:
sforman 2023-07-29 12:09:08 -07:00
parent b1d4c3c5b8
commit 9220361871
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
module Joy exposing (doit)
module Joy exposing (doit, JoyDict)
import Bitwise
import Dict exposing (Dict)
import Result exposing (andThen)
import String exposing (replace, words)
@ -14,6 +15,7 @@ type JoyType
type alias JList = List JoyType
type alias JoyDict = Dict String JList
joy : JList -> JList -> Result String JList

View File

@ -1,12 +1,13 @@
module Main exposing (..)
import Dict
import Browser
import Html exposing (Html, Attribute, div, input, text)
import Html.Attributes exposing (..)
import Html.Events exposing (onInput)
import Joy exposing (doit)
import Joy exposing (doit, JoyDict)
-- MAIN
@ -21,12 +22,13 @@ main =
type alias Model =
{ content : String
, dictionary : JoyDict
}
init : Model
init =
{ content = "" }
{ content = "", dictionary = Dict.empty }