Skip to content

Instantly share code, notes, and snippets.

@Garciat
Created November 11, 2025 12:25
Show Gist options
  • Select an option

  • Save Garciat/57d4b022333d4de0fc26fe3d9cd9565c to your computer and use it in GitHub Desktop.

Select an option

Save Garciat/57d4b022333d4de0fc26fe3d9cd9565c to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "28b69e7d-f00d-4224-a3d7-fb8b1b378ba5",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"type Parser a = String -> Maybe (a, String)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "56caa6f9-5ee2-43ac-81b7-f241f47b8172",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"($) :: (a -> b) -> (a -> b)\n",
"($) = id"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b0ac2333-1a00-4c59-b053-8aa9fb0b5a2e",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Haskell",
"language": "haskell",
"name": "haskell"
},
"language_info": {
"codemirror_mode": "ihaskell",
"file_extension": ".hs",
"mimetype": "text/x-haskell",
"name": "haskell",
"pygments_lexer": "Haskell",
"version": "9.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment