module Main where
import System.IO
= readFile "input.txt" >>= print.length.lines main
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
class Foo a where
foo :: a
instance a ~ Int => Foo (a -> Int) where
= k
foo k
instance (a ~ Int, b ~ Int) => Foo (a -> b -> Int) where
= k+l
foo k l
instance (a ~ String) => Foo (a -> String) where
= k
foo k
-- | usage:
-- | foo 1 :: Int
-- | foo 1 2 :: Int
-- | foo "bar":: String
-- | Both of these produce a transpose:
= transpose . V.toList $ d
t' = getZipList . sequenceA . map ZipList $ V.toList v' t'