Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typings to Sanctuary 0.12.* #13

Open
28 of 49 tasks
mnn opened this issue Feb 21, 2017 · 1 comment
Open
28 of 49 tasks

Update typings to Sanctuary 0.12.* #13

mnn opened this issue Feb 21, 2017 · 1 comment
Assignees

Comments

@mnn
Copy link
Owner

mnn commented Feb 21, 2017

Breaking changes

  • Values of the Maybe and Either types are no longer compatible with Ramda
  • Nothing() is now known simply as Nothing
  • and and or are now monomorphic
  • xor has been removed
  • meld has been removed
  • flip is now known as flip_
  • C is now known as flip
  • B is now known only as compose
  • S has been removed in favour of ap
  • lift is now known as map
  • match now has a more appropriate type
  • pluck now has prop semantics rather than get semantics
  • get, gets, and parseJson now take predicates rather than type representatives

New exports

  • __ :: Placeholder
  • alt :: Alt f => f a -> f a -> f a
  • ap :: Apply f => f (a -> b) -> f a -> f b
  • apFirst :: Apply f => f a -> f b -> f a
  • apSecond :: Apply f => f a -> f b -> f b
  • bimap :: Bifunctor f => (a -> b) -> (c -> d) -> f a c -> f b d
  • chain :: Chain m => (a -> m b) -> m a -> m b
  • chainRec :: ChainRec m => TypeRep m -> (a -> m (Either a b)) -> a -> m b
  • curry2 :: ((a, b) -> c) -> a -> b -> c
  • curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
  • curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e
  • curry5 :: ((a, b, c, d, e) -> f) -> a -> b -> c -> d -> e -> f
  • empty :: Monoid a => TypeRep a -> a
  • equals :: Setoid a => a -> a -> Boolean
  • extend :: Extend w => (w a -> b) -> w a -> w b
  • extract :: Comonad w => w a -> a
  • filter :: (Applicative f, Foldable f, Monoid (f a)) => (a -> Boolean) -> f a -> f a
  • filterM :: (Monad m, Monoid (m a)) => (a -> Boolean) -> m a -> m a
  • fromEither :: b -> Either a b -> b
  • fromMaybe_ :: (() -> a) -> Maybe a -> a
  • join :: Chain m => m (m a) -> m a
  • joinWith :: String -> Array String -> String
  • matchAll :: GlobalRegExp -> String -> Array { match :: String, groups :: Array (Maybe String) }
  • maybe_ :: (() -> b) -> (a -> b) -> Maybe a -> b
  • mean :: Foldable f => f FiniteNumber -> Maybe FiniteNumber
  • of :: Applicative f => TypeRep f -> a -> f a
  • on :: (b -> b -> c) -> (a -> b) -> a -> a -> c
  • on_ :: ((b, b) -> c) -> (a -> b) -> a -> a -> c
  • promap :: Profunctor p => (a -> b) -> (c -> d) -> p b c -> p a d
  • props :: Accessible a => Array String -> a -> b
  • sequence :: (Applicative f, Traversable t) => TypeRep f -> t (f a) -> f (t a)
  • splitOn :: String -> String -> Array String
  • toEither :: a -> b? -> Either a b
  • toString :: Any -> String
  • traverse :: (Applicative f, Traversable t) => TypeRep f -> (a -> f b) -> t a -> f (t b)
  • zero :: Plus f => TypeRep f -> f a

Change log: sanctuary-js/sanctuary#332
Branch: S_0.12

@GulinSS
Copy link

GulinSS commented Jun 14, 2017

@mnn look at https://github.com/ikatyang/dts-element
It might help. Ramda community had some success with it typed-typings/npm-ramda#173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants