Created
January 13, 2017 16:58
-
-
Save o1lo01ol1o/8319c986b27fcf0d06fbc89552e0760a to your computer and use it in GitHub Desktop.
failure of liberal coverage condition
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 DataKinds, PolyKinds, ScopedTypeVariables, | |
FlexibleInstances, FlexibleContexts, GADTs, TypeFamilies, | |
RankNTypes, LambdaCase, TypeOperators, TemplateHaskell, | |
ConstraintKinds, PolyKinds, NoImplicitPrelude, | |
UndecidableInstances, MultiParamTypeClasses , | |
GADTSyntax, | |
AllowAmbiguousTypes, | |
InstanceSigs, | |
DeriveFunctor, | |
FunctionalDependencies#-} | |
class (ValidBroadCast s t ~ True, u ~ EvalBroadcast s t) => | |
BroadCastAlgebra s t u | s t -> u where | |
(+) :: (Tensor s fv a) -> (Tensor t fv a) -> (Tensor u fv a) | |
instance BroadCastAlgebra s t u where | |
(+) :: (Tensor s fv a) -> (Tensor t fv a) -> (Tensor u fv a) | |
(+) (Tensor a) (Tensor b) = Tensor $ TF.add a b |
glguy
commented
Jan 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment