X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Adders.hs;fp=Adders.hs;h=c4389147c28726e1f1a9486f4cfe44f44a360309;hb=2b5500197937305ce58080762d3b0f027850b663;hp=6cf3be5d97ddafff47bd158e4d38a8e7cdaea73d;hpb=98734f52c51081459172bd28c0913162264cf3e5;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Adders.hs b/Adders.hs index 6cf3be5..c438914 100644 --- a/Adders.hs +++ b/Adders.hs @@ -172,8 +172,8 @@ highordtest = \x -> in \c d -> op' d c -functiontest :: TFVec D4 Bit -> RangedWord D3 -> Bit -functiontest = \v i -> let r = v!i in r +functiontest :: TFVec D4 Bit -> TFVec D5 Bit -> RangedWord D3 -> RangedWord D4 -> (Bit, Bit) +functiontest = \v1 v2 i1 i2 -> let r1 = v1!i1 ; r2 = v2!i2 in (r1,r2) highordtest2 = \a b -> case a of