Questions tagged [haskell-monomer]

2 questions
1
vote
0 answers

Using Lens to adjust user input in Monomer

I'm writing a GUI app in Monomer which has a textField function which accepts ALens which it uses to read/write input value into an AppModel . In my case AppModel looks like this: data AppModel = AppModel { _activeComment :: Maybe Text } …
dimsuz
  • 8,969
  • 8
  • 54
  • 88
0
votes
0 answers

Lens through the maybe field

I have a data similar to, but a bit more nested and of course named differently: data AppModel = AppModel { _foo :: Maybe String } deriving (Eq, Show) I would like to pass it to the Monomer textField textField :: WidgetEvent e => ALens' s Text ->…
majkrzak
  • 1,332
  • 3
  • 14
  • 30