Hoogle Search
Within LTS Haskell 24.20 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
haskell-src-meta Language.Haskell.Meta.Utils No documentation available.
(
#. ) :: Coercible c b => (b -> c) -> (a -> b) -> a -> clinear Linear.Affine No documentation available.
(
<.> ) :: Numeric t => Vector t -> Vector t -> thmatrix Numeric.LinearAlgebra An infix synonym for dot
>>> vector [1,2,3,4] <.> vector [-2,0,1,1] 5.0
>>> let 𝑖 = 0:+1 :: C >>> fromList [1+𝑖,1] <.> fromList [1,1+𝑖] 2.0 :+ 0.0
(
<.> ) :: forall (n :: Nat) . KnownNat n => R n -> R n -> ℝhmatrix Numeric.LinearAlgebra.Static No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple A composite type to parse your custom data structures without having to define dummy newtype wrappers every time.
instance FromRow MyData where ...
instance FromRow MyData2 where ...
then I can do the following for free:res <- query' c "..." forM res $ \(MyData{..} :. MyData2{..}) -> do .... -
postgresql-simple Database.PostgreSQL.Simple No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.Types A composite type to parse your custom data structures without having to define dummy newtype wrappers every time.
instance FromRow MyData where ...
instance FromRow MyData2 where ...
then I can do the following for free:res <- query' c "..." forM res $ \(MyData{..} :. MyData2{..}) -> do .... -
postgresql-simple Database.PostgreSQL.Simple.Types No documentation available.
(
^. ) :: s -> Getting a s a -> ario RIO (^.) applies a getter to a value; in other words, it gets a value out of a structure using a getter (which can be a lens, traversal, fold, etc.). Getting 1st field of a tuple:
(^. _1) :: (a, b) -> a (^. _1) = fst
When (^.) is used with a traversal, it combines all results using the Monoid instance for the resulting type. For instance, for lists it would be simple concatenation:>>> ("str","ing") ^. each "string"The reason for this is that traversals use Applicative, and the Applicative instance for Const uses monoid concatenation to combine “effects” of Const. A non-operator version of (^.) is called view, and it's a bit more general than (^.) (it works in MonadReader). If you need the general version, you can get it from microlens-mtl; otherwise there's view available in Lens.Micro.Extras.(
^.. ) :: s -> Getting (Endo [a]) s a -> [a]rio RIO s ^.. t returns the list of all values that t gets from s. A Maybe contains either 0 or 1 values:
>>> Just 3 ^.. _Just [3]
Gathering all values in a list of tuples:>>> [(1,2),(3,4)] ^.. each.each [1,2,3,4]