Orasund / elm-ui-widgets

Collection of reusable views for elm-ui.
https://orasund.github.io/elm-ui-widgets/
BSD 3-Clause "New" or "Revised" License
85 stars 11 forks source link

Compilation issues #83

Closed lukasturcani closed 2 years ago

lukasturcani commented 2 years ago

Hi there! Firstly I wanted to thank you for this amazing library! If you enable sponsoring to the repo, I would definitely like to send you some $$$ as a thank you.

I don't want to flood your repo with a bunch of issues, so I'm going to put them in this post and then split them out if that's what you prefer.

At the moment the "master" branch (commit a1fc9147d714c4a8056e3cac18c56a6a039ab5fa) does not compile. There are a couple reasons for this, some of which are easy to fix and some less so. I've got a bunch of them here. The contributing guide says to make an issue before opening PRs, so let me know if you are happy for me to open PRs and if I should put all of of these fixes into one big PR or multiple small ones.

I'm also a little bit confused about theusernameInput, emailInput and searchInput functions. For example, the type signature of usernameInput is Palette -> TextInputStyle msg. This is very similar to the type signatures in the Widget.Material module, rather than in the Widget module. I'm guessing these should be moved from src/Widget.elm into the appropriate Internal and Material modules? I also think that the implementation of these methods is incomplete as they lead to type errors, so I am happy to try and fix them as well.

Apologies if I got any of these wrong!

Orasund commented 2 years ago

Thanks for pointing this out, ill check it sometime next week.

Lukas Turcani @.***> schrieb am Fr., 17. Dez. 2021, 21:12:

Hi there! Firstly I wanted to thank you for this amazing library! If you enable sponsoring to the repo, I would definitely like to send you some $$$ as a thank you.

I don't want to flood your repo with a bunch of issues, so I'm going to put them in this post and then split them out if that's what you prefer.

At the moment the "master" branch (commit a1fc9147d714c4a8056e3cac18c56a6a039ab5fa) does not compile. There are a couple reasons for this, some of which are easy to fix and some less so. I've got a bunch of them here. The contributing guide says to make an issue before opening PRs, so let me know if you are happy for me to open PRs and if I should put all of of these fixes into one big PR or multiple small ones.

  • In src/Internal/Material/TextInput.elm: import Element needs to be import Element exposing (Attribute) because of the following type signature textInputAttributes : Palette -> List (Attribute msg)
  • In src/Internal/TextInput.elm: import Element.Input as Input exposing (Placeholder) needs to be import Element.Input as Input exposing (Label, Placeholder) because the type signature of the internal function uses it.
  • In src/Widget.elm: import Internal.Material.Palette exposing (Palette) needs to be added because of the functions usernameInput, emailInput, searchInput, spellCheckedInput use it.

I'm also a little bit confused about theusernameInput, emailInput and searchInput functions. For example, the type signature of usernameInput is Palette -> TextInputStyle msg. This is very similar to the type signatures in the Widget.Material module, rather than in the Widget module. I'm guessing these should be moved from src/Widget.elm into the appropriate Internal and Material modules?

Apologies if I got any of these wrong!

— Reply to this email directly, view it on GitHub https://github.com/Orasund/elm-ui-widgets/issues/83, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYRMLCM2LSBVZOSYLCPNOLUROKSXANCNFSM5KJUAWPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

Orasund commented 2 years ago

Should now be stable again.