OverloadedString
extension is applied.- The following modules are imported.
- Control.Applicative
- Data.Attoparsec.Text
- Data.Char
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
// This is the presenter class that stores the state | |
App.FooPresenter = Em.ObjectProxy.create({ | |
textAreaContent: '', | |
isExpanded: false | |
}); | |
// This is your controller - be sure to set the content to a list of models in your route | |
App.FoosController = Em.ArrayController.extend({ | |
presenters: function() { |
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
-- IO (Maybe Integer Stack) | |
-- I can't find the code currently I am basing this off of, but I wanted to be | |
-- able to learn more about using StateT along with Maybe types. | |
import Control.Monad.State | |
main :: IO () | |
main = runStateT code Nothing >> return () | |
code :: StateT (Maybe [Integer]) IO () | |
code = do |