-
-
Notifications
You must be signed in to change notification settings - Fork 274
Clean warnings #1133
Clean warnings #1133
Conversation
@sss-create Just checking you're not already working on this? |
That was easier than I thought! |
nice! I started working on this in my fork but did not get too far yet. Did you replace the head/tail functions yet? I thought we could maybe use Debug.Trace to message the user in case of empty lists. What is your take on this? |
Hm I'm not seeing any warnings about head/tail functions.. How are you getting them? |
Ah I see them with the latest rather than the recommended ghc, along with some other new warnings. I don't have any strong opinions about head/tail really. |
head/tail warnings are annoying imo. However a strategy to get rid of them is needed. On one hand, the exception head and tail may throw are good to inform the user about a mistake when e.g. passing an empty list. OTOH, it's a scary error message. Same goes for '!!'. So we'd have to decide what we want to replace head/tail with: |
I think tail can probably be replaced with |
I'm undecided but I'd be in favor of removing head/tail from the code base since Tidal's install procedure exposes the user to GHC's warnings. No warning/exception when evaluating a pattern could be irritating though. |
No description provided.