News for hackers. Stuff that matters.
Re:Haskell RecordDotSyntax language extension proposal (Acce... by thomasahle on Monday September 21, 2020 @04:20AM (#24540999)
(.g) us a field selector, is (. g) then a function :: (a -> b) -> c -> b?
Re:Haskell RecordDotSyntax language extension proposal (Acce... by giraj on Monday September 21, 2020 @07:57AM (#24542264)
Yep! You could check this in GHCi (the repl), for example:

  > :t (. id)
  > (. id) :: (b -> c) -> b -> c
(:t prints the type of an expression, and id is the "identity function" that's b -> b here.)

(EDIT: Maybe you know the above and you're asking if it's being changed in the proposal. It doesn't seem so to me.)

Re:Haskell RecordDotSyntax language extension proposal (Acce... by thomasahle on Monday September 21, 2020 @11:09AM (#24544331)
I'm just pointing out that the difference between (.g) and (. g) is potentially easy to miss.