This file contains 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 FlexibleInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleContexts, UndecidableInstances #-} | |
import Data.Bifunctor | |
import Data.Biapplicative | |
import Data.List | |
data Tensor a b = a :*: b deriving (Show) | |
class ShowAll c where | |
toList :: [c] |