Guest User

Untitled

a guest
Dec 27th, 2017
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. type alias Form =
  2. { email : String
  3. , password: String
  4. , passwordAgain: String
  5. , postTitle : String
  6. , postBody: String
  7. }
  8.  
  9. type alias Model =
  10. { posts: List Post
  11. , user: Maybe User
  12. , route: Route
  13. , form : Form
  14. }
  15.  
  16. initialModel : Model
  17. initialModel =
  18. { posts = List.range 1 10 |> List.map toString |> List.map initialPost
  19. , user = Nothing
  20. , route = HomeRoute
  21. , form = {email = "", password = "", passwordAgain = "", postTitle = "", postBody = ""}
  22. }
Add Comment
Please, Sign In to add comment