Skip to content

Instantly share code, notes, and snippets.

@martijnbastiaan
Last active July 30, 2020 06:26
Show Gist options
  • Save martijnbastiaan/52bd6a5b72383617a2a29322c91987ec to your computer and use it in GitHub Desktop.
Save martijnbastiaan/52bd6a5b72383617a2a29322c91987ec to your computer and use it in GitHub Desktop.
{-# LANGUAGE AllowAmbiguousTypes #-}
module Problem where
import Clash.Prelude
id1
:: forall n
. ( KnownNat n
, 1 <= (CLog 2 (n+2))
)
=> Vec (CLog 2 (n+2)) Bool
-> Vec (CLog 2 (n+2)) Bool
id1 v = id2 @n v
id2
:: forall n
. ( KnownNat n
, 1 <= (CLog 2 (n+2))
)
=> Vec (CLog 2 (n+2)) Bool
-> Vec (CLog 2 (n+2)) Bool
id2 = id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment