Question: @pdamoc thanks, do i need to have a custom parser for that ?

Asked By
shamis657
Asked At
2018-03-06 08:31:39

Found 15 possible answers.

User Answered At Possible Answer
pdamoc 2018-03-06 08:32:07 @shamis657 yes, you need parsers for each route but they are trivial to implement :slightly_smiling_face:
shamis657 2018-03-06 08:40:41 @pdamoc so i would have to match it with String.contains ?
pdamoc 2018-03-06 08:42:32 @shamis657 have you went through the url-parser examples?
shamis657 2018-03-06 08:44:23 @pdamoc yes, thanks, looking at the elm-spa-example
jessta 2018-03-06 09:08:31 You could have subscriptions return Sub.none , have view render an empty div and set the model to Nothing and see if you still get leaks when you remove the embed element
happypoulp 2018-03-06 09:38:23 Not an easy path :smile: , but I’ll give it a try and keep you posted. Thanks!
peterszerzo 2018-03-06 10:11:07 Amazing - thanks a lot, @pdamoc , that'll be super useful!
justgook 2018-03-06 11:24:10 https://ellie-app.com/687jJ5sy5a1/0 - is that feature ? that You cannot create Set of 7element tuples ?
ngw 2018-03-06 11:43:43 Still have issues understanding how elm-form works, I'm attempting to add 2 radios to my form, I've setup the validation, but the example is using bootstrap and I can't figure out how it works
       Input.radioInput "designer" (Form.getFieldAsString "designer" form) [],
I so don't get why it works like this  :confused: 
omg, got it
I understand I can just use a string, but no I can't, it's a type that can receive a "path" call I can't find anywhere
(Form.getFieldAsString "profile.superpower" form) 
                (text "Superpower")
radioGroup superpowerOptions this is the example https://github.com/etaque/elm-form/blob/master/example/src/View.elm that is clearly broken, the second arg should represent some kind of state that probably is a result of validation, but I don't know how to wire everything together
      Input.radioInput "designer" True []
jessta 2018-03-06 12:05:15 The type alias of a function type does make it a bit strange http://package.elm-lang.org/packages/etaque/elm-form/3.0.0/Form-Input#Input
ngw 2018-03-06 12:06:20 I understand I have this form thing that contains the state, and I've got to grab it from there
treilly 2018-03-06 12:48:37 Is there an equivalent to Python’s pass in Elm? I’m outlining some tests, and I keep putting _ = 0 in the let expression. I get that I could not put a let expression (and just go right to Expect.fail "Finish me!" , but I know I’m going to need it 99% of the time.
ngw 2018-03-06 13:14:19 I remember there was a way to Debug.log messages in a case expression, but I can't remember how
mengukagan 2018-03-06 13:14:35 @treilly haskell has undefined, someone gave it a shot https://groups.google.com/forum/#!topic/elm-discuss/kN9X2FS9dbk and probably you're good to go wrap it with lazy
treilly 2018-03-06 13:26:58 @mengukagan Thanks!

Related Questions