on master help sign in
Arguments under type constructors are not forceable!
commit3a27fde1cfe44586a1b859b24c0db02c443c4728 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateSat 2 Feb 2013, 14:59 (14 years ago) parent92257c4
1 file changed+2−2
src/Idris/DataOpts.hs+2−2
src/Idris/DataOpts.hs+2−2
@@ -48,8 +48,8 @@ forceArgs n t = do i <- getIState
4848
4949 guarded :: Term -> [Int]
5050 guarded t@(App f a)
51− | (P (TCon _ _) _ _, args) <- unApply t
52− = mapMaybe isF args ++ concatMap guarded args
51+-- | (P (TCon _ _) _ _, args) <- unApply t
52+-- = mapMaybe isF args ++ concatMap guarded args
5353 | (P (DCon _ _) _ _, args) <- unApply t
5454 = mapMaybe isF args ++ concatMap guarded args
5555 guarded t = mapMaybe isF [t]