|
101 | 101 | removeAll :: forall e. Cache -> CacheEff e Unit |
102 | 102 |
|
103 | 103 |
|
| 104 | +## Module Angular.DI |
| 105 | + |
| 106 | +### Types |
| 107 | + |
| 108 | + data Annotated :: * -> * |
| 109 | + |
| 110 | + newtype RootElement where |
| 111 | + RootElement :: Element -> RootElement |
| 112 | + |
| 113 | + newtype RootScope a where |
| 114 | + RootScope :: Scope a -> RootScope |
| 115 | + |
| 116 | + |
| 117 | +### Type Classes |
| 118 | + |
| 119 | + class Dependency a where |
| 120 | + name :: String |
| 121 | + |
| 122 | + class Injectable a where |
| 123 | + dependencies :: a -> [String] |
| 124 | + |
| 125 | + |
| 126 | +### Type Class Instances |
| 127 | + |
| 128 | + instance dependencyAnimate :: Dependency Animate |
| 129 | + |
| 130 | + instance dependencyAttributes :: Dependency Attributes |
| 131 | + |
| 132 | + instance dependencyCacheFactory :: Dependency CacheFactory |
| 133 | + |
| 134 | + instance dependencyElement :: Dependency Element |
| 135 | + |
| 136 | + instance dependencyHttp :: Dependency Http |
| 137 | + |
| 138 | + instance dependencyInjector :: Dependency Injector |
| 139 | + |
| 140 | + instance dependencyInterpolate :: Dependency Interpolate |
| 141 | + |
| 142 | + instance dependencyInterval :: Dependency Interval |
| 143 | + |
| 144 | + instance dependencyLocation :: Dependency Location |
| 145 | + |
| 146 | + instance dependencyLog :: Dependency Log |
| 147 | + |
| 148 | + instance dependencyParse :: Dependency Parse |
| 149 | + |
| 150 | + instance dependencyQ :: Dependency Q |
| 151 | + |
| 152 | + instance dependencyRootElement :: Dependency RootElement |
| 153 | + |
| 154 | + instance dependencyRootScope :: Dependency (RootScope a) |
| 155 | + |
| 156 | + instance dependencyScope :: Dependency (Scope a) |
| 157 | + |
| 158 | + instance dependencyThis :: Dependency (This a) |
| 159 | + |
| 160 | + instance dependencyTimeout :: Dependency Timeout |
| 161 | + |
| 162 | + instance injectableEff :: Injectable (Eff e r) |
| 163 | + |
| 164 | + instance injectableFn :: (Dependency a, Injectable b) => Injectable (a -> b) |
| 165 | + |
| 166 | + instance serviceAnimate :: Service Animate |
| 167 | + |
| 168 | + instance serviceCacheFactory :: Service CacheFactory |
| 169 | + |
| 170 | + instance serviceHttp :: Service Http |
| 171 | + |
| 172 | + instance serviceInjector :: Service Injector |
| 173 | + |
| 174 | + instance serviceInterpolate :: Service Interpolate |
| 175 | + |
| 176 | + instance serviceInterval :: Service Interval |
| 177 | + |
| 178 | + instance serviceLocation :: Service Location |
| 179 | + |
| 180 | + instance serviceLog :: Service Log |
| 181 | + |
| 182 | + instance serviceParse :: Service Parse |
| 183 | + |
| 184 | + instance serviceQ :: Service Q |
| 185 | + |
| 186 | + instance serviceRootElement :: Service RootElement |
| 187 | + |
| 188 | + instance serviceRootScope :: Service (RootScope a) |
| 189 | + |
| 190 | + instance serviceTimeout :: Service Timeout |
| 191 | + |
| 192 | + |
| 193 | +### Values |
| 194 | + |
| 195 | + annotate :: forall a. (Injectable a) => a -> Annotated a |
| 196 | + |
| 197 | + get :: forall e a. (Service a) => Injector -> InjEff e a |
| 198 | + |
| 199 | + |
104 | 200 | ## Module Angular.Deferred |
105 | 201 |
|
106 | 202 | ### Types |
|
605 | 701 |
|
606 | 702 | finally' :: forall e r a b. Eff e r -> Promise a b -> Promise a b |
607 | 703 |
|
| 704 | + pureReject :: forall a b. a -> Promise a b |
| 705 | + |
| 706 | + pureResolve :: forall a b. b -> Promise a b |
| 707 | + |
608 | 708 | then' :: forall a b c d. (b -> Promise c d) -> Promise a b -> Promise c d |
609 | 709 |
|
610 | 710 | then'' :: forall a b c d. (b -> Promise c d) -> (a -> Promise c d) -> Promise a b -> Promise c d |
|
654 | 754 | ### Types |
655 | 755 |
|
656 | 756 | data ApplyExpr e r a where |
657 | | - DefaultApplyExpr :: ApplyExpr e r a |
658 | | - StringApplyExpr :: String -> ApplyExpr e r a |
659 | | - FnApplyExpr :: Scope a -> Eff e r -> ApplyExpr e r a |
| 757 | + DefaultApplyExpr :: ApplyExpr |
| 758 | + StringApplyExpr :: String -> ApplyExpr |
| 759 | + FnApplyExpr :: (Scope a -> Eff e r) -> ApplyExpr |
660 | 760 |
|
661 | 761 | type Event e a b = { defaultPrevented :: Boolean, preventDefault :: Eff e Unit, stopPropagation :: Eff e Unit, name :: String, currentScope :: Scope b, targetScope :: Scope a } |
662 | 762 |
|
|
926 | 1026 | data NgHttp :: ! |
927 | 1027 |
|
928 | 1028 | data RequestData a where |
929 | | - NoRequestData :: RequestData a |
930 | | - StringRequestData :: String -> RequestData a |
931 | | - ObjectRequestData :: a -> RequestData a |
| 1029 | + NoRequestData :: RequestData |
| 1030 | + StringRequestData :: String -> RequestData |
| 1031 | + ObjectRequestData :: a -> RequestData |
932 | 1032 |
|
933 | 1033 | type RequestDataFn a = { objectRequestData :: a -> RequestData a, stringRequestData :: String -> RequestData a, noRequestData :: RequestData a } |
934 | 1034 |
|
935 | 1035 | data ResponseData a where |
936 | | - NoResponseData :: ResponseData a |
937 | | - DefaultResponseData :: String -> ResponseData a |
938 | | - ArrayBufferResponseData :: D.ArrayBuffer -> ResponseData a |
939 | | - BlobResponseData :: D.Blob -> ResponseData a |
940 | | - DocumentResponseData :: D.Document -> ResponseData a |
941 | | - JsonResponseData :: a -> ResponseData a |
942 | | - TextResponseData :: String -> ResponseData a |
943 | | - MozBlobResponseData :: D.MozBlob -> ResponseData a |
944 | | - MozChunkedTextResponseData :: D.MozChunkedText -> ResponseData a |
945 | | - MozChunkedArrayBufferResponseData :: D.MozChunkedArrayBuffer -> ResponseData a |
| 1036 | + NoResponseData :: ResponseData |
| 1037 | + DefaultResponseData :: String -> ResponseData |
| 1038 | + ArrayBufferResponseData :: D.ArrayBuffer -> ResponseData |
| 1039 | + BlobResponseData :: D.Blob -> ResponseData |
| 1040 | + DocumentResponseData :: D.Document -> ResponseData |
| 1041 | + JsonResponseData :: a -> ResponseData |
| 1042 | + TextResponseData :: String -> ResponseData |
| 1043 | + MozBlobResponseData :: D.MozBlob -> ResponseData |
| 1044 | + MozChunkedTextResponseData :: D.MozChunkedText -> ResponseData |
| 1045 | + MozChunkedArrayBufferResponseData :: D.MozChunkedArrayBuffer -> ResponseData |
946 | 1046 |
|
947 | 1047 | type ResponseDataFn a = { mozChunkedArrayBufferResponseData :: D.MozChunkedArrayBuffer -> ResponseData a, mozChunkedTextResponseData :: D.MozChunkedText -> ResponseData a, mozBlobResponseData :: D.MozBlob -> ResponseData a, textResponseData :: String -> ResponseData a, jsonResponseData :: a -> ResponseData a, documentResponseData :: D.Document -> ResponseData a, blobResponseData :: D.Blob -> ResponseData a, arrayBufferResponseData :: D.ArrayBuffer -> ResponseData a, defaultResponseData :: String -> ResponseData a, noResponseData :: ResponseData a } |
948 | 1048 |
|
|
1005 | 1105 | writeRequestData :: forall a. RequestData a -> ForeignRequestData |
1006 | 1106 |
|
1007 | 1107 |
|
| 1108 | +## Module Angular.Promise.Eff |
| 1109 | + |
| 1110 | +### Types |
| 1111 | + |
| 1112 | + newtype PromiseEff e f a b where |
| 1113 | + PromiseEff :: Promise (Eff e a) (Eff f b) -> PromiseEff |
| 1114 | + |
| 1115 | + |
| 1116 | +### Type Class Instances |
| 1117 | + |
| 1118 | + instance applicativePromiseEff :: Applicative (PromiseEff e f a) |
| 1119 | + |
| 1120 | + instance applyPromise :: Apply (PromiseEff e f a) |
| 1121 | + |
| 1122 | + instance bifunctorPromise :: Bifunctor (PromiseEff e f) |
| 1123 | + |
| 1124 | + instance bindPromiseEff :: Bind (PromiseEff e f a) |
| 1125 | + |
| 1126 | + instance functorPromiseEff :: Functor (PromiseEff e f a) |
| 1127 | + |
| 1128 | + |
| 1129 | +### Values |
| 1130 | + |
| 1131 | + liftPromiseEff :: forall e f a b. Eff e a -> Eff f b -> PromiseEff e f a b |
| 1132 | + |
| 1133 | + liftPromiseEff' :: forall e f a b. Eff f b -> PromiseEff e f a b |
| 1134 | + |
| 1135 | + promiseEff :: forall e f a b. Promise a b -> PromiseEff e f a b |
| 1136 | + |
| 1137 | + promiseEff' :: forall e f a b. Promise a (Eff f b) -> PromiseEff e f a b |
| 1138 | + |
| 1139 | + promiseEff'' :: forall e f a b. Promise (Eff e a) b -> PromiseEff e f a b |
| 1140 | + |
| 1141 | + runPromiseEff :: forall e f a b. PromiseEff e f a b -> Promise (Eff e a) (Eff f b) |
| 1142 | + |
| 1143 | + unsafeRunPromiseEff :: forall e f a b. PromiseEff e f a b -> Promise a b |
| 1144 | + |
| 1145 | + |
1008 | 1146 |
|
0 commit comments