Advertisement
Advertisement
Advertisement

Maximize

Advertisement

haskle

What exactly is a haskle?

The challenge is a fun game within the Haskell community that aims to test developers' understanding of Haskle's type system and their ability to decipher obfuscated type signatures. In this challenge, the type of a function is obscured by replacing its actual type elements with emojis, making it difficult to determine the function's implementation at first glance. The participant's task is to determine the correct function by carefully analyzing the constraints imposed by the obfuscated type signature.

Rules of the Game

  • Assume we are given the following obfuscated type signature for a Haskle function:
  • Our goal is to deduce what the function does and correctly implement it.
  • Initially, each type element is replaced with an emoji.

Tips

  • To successfully decipher the function, we must first analyze the constraints and understand what operations we can perform on the types.
  • This part indicates that the function takes another function as its first argument, and that this function has an input type. Let's call this function f.
  • This section represents a list of values. Let's call the list xs.
  • This is the function's return type, which we'll call result.

Relates Tags

All New Games

There are many other games developed under Connections NYT, let's try them out