{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifevvv52irzlo27sms7e2ljge7zjxum3gd2pkfjn3dsecg6jem4im",
"uri": "at://did:plc:pi6woz4d47bkuws673w2il2r/app.bsky.feed.post/3mixvfqof4l62"
},
"path": "/t/would-keyword-arguments-conflict-with-currying-in-haskell/13906#post_2",
"publishedAt": "2026-04-08T06:54:26.000Z",
"site": "https://discourse.haskell.org",
"tags": [
"proposal",
"@A",
"@B"
],
"textContent": "Shantanu-sg-01:\n\n> Would adding keyword arguments conflict with currying in Haskell?\n\nFile a proposal to get thorough feedback.\n\nArguments of same type can be disambiguated with phantom types trick.\n\n\n {-# LANGUAGE TypeApplications #-}\n import Data.Tagged\n\n data A\n data B\n\n f :: Tagged A Int -> Tagged B Int -> Int\n f (Tagged a) (Tagged b) = a + b\n\n withF :: Int\n withF = f (pure @A 1) (pure @B 2)\n",
"title": "Would keyword arguments conflict with currying in Haskell?"
}