Open bbarker opened 4 weeks ago
I recently came across this with uncurry as well; had to do this:
uncurryPure: (a ->{} b ->{} c) -> (a, b) ->{} c
uncurryPure = uncurry
areAdsenseScripts: (Html, Html) -> Boolean
areAdsenseScripts = allFlip [
uncurryPure <| srcContains "pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
, uncurryPure <| isScript
]
Describe and demonstrate the bug
Input:
Output:
However, there are a couple of workarounds. The first is not including any type signature in the definition:
Output:
Another workaround that may work in some cases is to use type signatures but with the empty set of abilities specified (
{}
):Environment (please complete the following information):
ucm --version
unison version: release/0.5.27 (built on 2024-10-01)
OS/Architecture: [e.g. "macOS 14.5, Intel"]
Additional context
Originally discussed on discord