Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
foundation Foundation.Array No documentation available.
imap :: InnerFunctor c => (Element c -> Element c) -> c -> cfoundation Foundation.Collection No documentation available.
nonEmptyFmap :: Functor f => (a -> b) -> NonEmpty (f a) -> NonEmpty (f b)foundation Foundation.Collection No documentation available.
-
Note that the memory mapping is handled by the system, not at the haskell level. The system can modify the content of the memory as any moment under your feet. It also have the limitation of your system, no emulation or nice handling of all those corners cases is attempted here. for example mapping a large file (> 4G), on a 32 bits system is likely to just fail or returns inconsistent result. In doubt, use readFile or other simple routine that brings the content of the file in IO.
fileMapRead :: FilePath -> IO (UArray Word8)foundation Foundation.IO.FileMap Map in memory the whole content of a file. Once the array goes out of scope, the memory get (eventually) unmap
fileMapReadWith :: FilePath -> (UArray Word8 -> IO a) -> IO afoundation Foundation.IO.FileMap Map in memory the whole content of a file,
gconstmap :: (Generic1 f, Functor (Rep1 f)) => a -> f b -> f ageneric-data Generic.Data gfmap :: (Generic1 f, Functor (Rep1 f)) => (a -> b) -> f a -> f bgeneric-data Generic.Data Generic fmap.
instance Functor MyTypeF where fmap = gfmap
gfoldMap :: (Generic1 f, GFoldable (Rep1 f), Monoid m) => (a -> m) -> f a -> mgeneric-data Generic.Data Generic foldMap.
instance Foldable MyTypeF where foldMap = gfoldMap
gmappend :: (Generic a, Semigroup (Rep a ())) => a -> a -> ageneric-data Generic.Data instance Semigroup MyType where (<>) = gmappend
See also gmempty.