joshuanianji / ui-bootstrap-demo

http://joshuaji.com/ui-bootstrap-demo/
2 stars 2 forks source link

Master does not compile #5

Open PascalLeMerrer opened 4 years ago

PascalLeMerrer commented 4 years ago

Hello. I followed the instructions in the readme but the current master does not compile. The compilation produces multiple errors like this one:

-- TYPE MISMATCH ----------------------------------------- src/Page/Showroom.elm

This function cannot handle the argument sent through the (|>) pipe:

310|                 Alert.default
311|                     |> Alert.withRole Warning
312|                     |> Alert.withChild
313|                         (UiFramework.uiColumn
314|                             [ Element.width Element.fill
315|                             , Element.spacing 8
316|                             ]
317|                             [ Typography.h4 [] <| UiFramework.uiText "Whoa bro!"
318|                             , UiFramework.uiParagraph []
319|                                 [ UiFramework.uiText "Watch out - you got warning." ]
320|                             ]
321|                         )
322|                     |> Alert.view
                            ^^^^^^^^^^
The argument is:

    Alert.Alert context msg

But (|>) is piping it a function that expects:

Bool
joshuanianji commented 4 years ago

Hey Pascal, thanks for your patience.

Can you check if it works now? I've merged some prs and it works on my machine. I did not update the demo app with the elm-ui-bootstrap source code.