Interesting https://www.reddit.com/r/haskell/comments/1u8rp1/with_two_different_functors/
Description of monoidal natural transformations https://gist.github.com/Icelandjack/9e6902690a244286843164e554a8c3db
Interesting https://www.reddit.com/r/haskell/comments/1u8rp1/with_two_different_functors/
Description of monoidal natural transformations https://gist.github.com/Icelandjack/9e6902690a244286843164e554a8c3db
mniip | |
edwardk, I think I just came up with the most complicated solution to the Show1 problem | |
phadej | |
Show1 problem? | |
mniip | |
instance Show (IdentityT m a) where ??? | |
phadej | |
and your solution is? | |
mniip | |
coming up |
simplify :: Expr SomePrim (Type s) a -> Either String (MP s a)
simplify (Var a) = pure (MPApp (MPVar a))
simplify (Prim (SomePrim p)) = simplifyPrim0 p
simplify (Lam _ _) = throwError "Non-applied lambda abstraction"
http://www.cs.ox.ac.uk/people/bob.coecke/AbrNikos.pdf
Why study categories—what are they good for? We can offer a range of answers for readers coming from different backgrounds:
Motivating examples for https://ghc.haskell.org/trac/ghc/ticket/10843, https://ghc.haskell.org/trac/ghc/wiki/ArgumentDo
This should allow
curry $ \case
without the dollar giving us weird code
To allow hask
type Cat k = k -> k -> Type
type Fun i j = i -> j
data Nat :: Cat i -> Cat j -> Cat (Fun i j) where
Nat :: (FunctorOf cat cat' f, FunctorOf cat cat' f') => (forall a. Ob cat a => cat' (f a) (f' a)) -> Cat cat cat' f f'
I made a way to get more free stuff and free stuff is good.
The current implementation of deriveVia
is here, it works with all the examples here. Needs GHC 8.2 and th-desugar.
for new Haskellers to get pampered by their compiler. For the price of a line or two the compiler offers to do your job, to write uninteresting code for you (in the form of type classes) such as equality, comparison, serialization, ... in the case of 3-D vectors