Re: [elm-discuss] Re: Elm.fullscreen is not a function

2017-08-01 Thread Allan Clark
Also new to Elm so I may be wrong, but assuming your program is defined in the module 'Main.elm' I think you want: Elm.Main.fullscreen(); On 7 July 2017 at 21:38, Denis Kolodin wrote: > Another reason for 0.18: I take `Elm.MyApp.fullscreen is not a function` > when I

Re: [elm-discuss] ADT: How to know whether two values have the same constructor?

2017-07-21 Thread Allan Clark
If you want to have the compiler complain when you add a new constructor then: haveSameConstructor : Bla -> Bla -> Bool haveSameConstructor first second = case (first, second) of (A _, A _) -> True (A _, _) -> False (B _, B _) -> True