Lilac

@Lilac@lemmygrad.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Lilac,

Kinda. You can’t define a name, but you can get the compiler to interpret literals as a function. If you have a Num instance for (Integer -> Integer) where,

fromInteger i = x -> x * i

the compiler can interpret integer literals as functions like so

x = 2(5) :: Integer

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #