Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 6ea208f

Browse files
committed
🔥 toList.
1 parent f96b14d commit 6ea208f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

semantic-analysis/src/Analysis/Syntax.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE GADTs #-}
22
{-# LANGUAGE KindSignatures #-}
3-
{-# LANGUAGE LambdaCase #-}
43
{-# LANGUAGE QuantifiedConstraints #-}
54
{-# LANGUAGE ScopedTypeVariables #-}
65
{-# LANGUAGE TypeOperators #-}
@@ -17,7 +16,6 @@ module Analysis.Syntax
1716
, N2
1817
, N3
1918
, Vec(..)
20-
, toList
2119
) where
2220

2321
import Control.Monad (guard)
@@ -98,9 +96,3 @@ instance Ord a => Ord (Vec n a) where
9896
instance Foldable (Vec n) where
9997
foldMap _ Nil = mempty
10098
foldMap f (Cons a as) = f a <> foldMap f as
101-
102-
103-
toList :: Vec n a -> [a]
104-
toList = \case
105-
Nil -> []
106-
Cons a as -> a : toList as

0 commit comments

Comments
 (0)