Created
June 7, 2016 06:54
-
-
Save ccapndave/085b798927cda17fcb2feba8c3db773c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Component.Requirements.Model exposing (..) | |
import Focus exposing (Focus) | |
import ExerciseRenderer | |
type alias Model a = | |
{ a | |
| hasConfirmedRequirements : Bool | |
, requirementsModel : ComponentModel | |
} | |
type alias ComponentModel = | |
{ exerciseRenderer : ExerciseRenderer.Model | |
} | |
{-| A focus onto the component model | |
-} | |
componentModel : Focus { r | requirementsModel : a } a | |
componentModel = | |
Focus.create .requirementsModel (\f r -> { r | requirementsModel = f r.requirementsModel}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment