Advertisement
Advertisement
Advertisement
haskle
What exactly is haskle?
The Haskle community has created a fun game to test developers' comprehension of Haskle's type system and their ability to decipher obfuscated type signatures. The type of a function is concealed in this challenge by substituting its real type elements with emoji, making it difficult to understand the function's implementation at first glance. The aim of the participant is to determine the proper function by carefully considering the constraints imposed by the obfuscated type signature.
Gameplay Guidelines
Consider the following obfuscated type signature for a Haskle function:
- Our goal is to figure out what the function does and correctly implement it.
- The goal is to use a preamble to infer a function from its obfuscated type. Each type element is initially replaced with an emoji.
Tips
To properly read the function, we must first examine the limitations and comprehend the operations that can be performed on the kinds.
- This part indicates that the function takes another function as its first argument, with an input type of and a return type of. Let us refer to this function as f.
- This section contains a list of values. Let's call the collection xs.
- This is the function's return type, which we'll refer to as a result.
How to play haskle
Using mouse