Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Lysxia
Created June 17, 2016 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lysxia/f5e31a527810556c15ae98c688354f8c to your computer and use it in GitHub Desktop.
Save Lysxia/f5e31a527810556c15ae98c688354f8c to your computer and use it in GitHub Desktop.
forM_ (zip [0, 2..] (makeForm someUser)) $ \(idx, label_name) -> do
createLabel label_name >>= attach idx
Entry.entryNew >>= attach (idx+1)
where
attach idx x = Grid.gridAttach grid x 0 idx 1 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment