Last active
July 30, 2020 06:26
-
-
Save martijnbastiaan/52bd6a5b72383617a2a29322c91987ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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