Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
numhask NumHask.Data.Complex Complex number constructor. Internally, Complex derives most instances via EuclideanPair. For instance,
>>> sqrt (1.0 +: (-1.0)) :: Complex Double Complex {complexPair = (1.0986841134678098,-0.45508986056222733)}>>> sqrt ((-1.0) +: 0.0) :: Complex Double Complex {complexPair = (6.123233995736766e-17,1.0)} -
numhask NumHask.Prelude (++) appends two lists, i.e.,
[x1, ..., xm] ++ [y1, ..., yn] == [x1, ..., xm, y1, ..., yn] [x1, ..., xm] ++ [y1, ...] == [x1, ..., xm, y1, ...]
If the first list is not finite, the result is the first list.Performance considerations
This function takes linear time in the number of elements of the first list. Thus it is better to associate repeated applications of (++) to the right (which is the default behaviour): xs ++ (ys ++ zs) or simply xs ++ ys ++ zs, but not (xs ++ ys) ++ zs. For the same reason concat = foldr (++) [] has linear performance, while foldl (++) [] is prone to quadratic slowdownExamples
>>> [1, 2, 3] ++ [4, 5, 6] [1,2,3,4,5,6]
>>> [] ++ [1, 2, 3] [1,2,3]
>>> [3, 2, 1] ++ [] [3,2,1]
(
+-+ ) :: String -> String -> Stringsimple-cmd SimpleCmd Combine two strings with a single space
(
++ ) :: Monoid w => w -> w -> wbasic-prelude BasicPrelude (++) = mappend
(
++ ) :: Monoid m => m -> m -> mclassy-prelude ClassyPrelude No documentation available.
(
++. ) :: SqlString s => SqlExpr (Value s) -> SqlExpr (Value s) -> SqlExpr (Value s)esqueleto Database.Esqueleto The || string concatenation operator (named after Haskell's ++ in order to avoid naming clash with ||.). Supported by SQLite and PostgreSQL. MySQL support requires setting the SQL mode to PIPES_AS_CONCAT or ANSI - see this StackOverflow answer.
(
+. ) :: PersistField a => SqlExpr (Value a) -> SqlExpr (Value a) -> SqlExpr (Value a)esqueleto Database.Esqueleto This operator translates to the SQL operator +. This does not require or assume anything about the SQL values. Interpreting what +. means for a given type is left to the database engine. Example:
user ^. UserAge +. val 10
-
esqueleto Database.Esqueleto No documentation available.
(
++. ) :: SqlString s => SqlExpr (Value s) -> SqlExpr (Value s) -> SqlExpr (Value s)esqueleto Database.Esqueleto.Experimental The || string concatenation operator (named after Haskell's ++ in order to avoid naming clash with ||.). Supported by SQLite and PostgreSQL. MySQL support requires setting the SQL mode to PIPES_AS_CONCAT or ANSI - see this StackOverflow answer.
(
+. ) :: PersistField a => SqlExpr (Value a) -> SqlExpr (Value a) -> SqlExpr (Value a)esqueleto Database.Esqueleto.Experimental This operator translates to the SQL operator +. This does not require or assume anything about the SQL values. Interpreting what +. means for a given type is left to the database engine. Example:
user ^. UserAge +. val 10