Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setName :: Lens' NetlistEnv (Maybe Text)

    clash-lib Clash.Netlist.Types

    No documentation available.

  2. setRepName :: Text -> Name a -> Name a

    clash-lib Clash.Netlist.Util

    No documentation available.

  3. setupMultiResultPrim :: HasCallStack => NormRewrite

    clash-lib Clash.Normalize.Transformations.MultiPrim

    No documentation available.

  4. setChanged :: RewriteMonad extra ()

    clash-lib Clash.Rewrite.Util

    Notify that a transformation has changed the expression

  5. setUnique :: Uniquable a => a -> Unique -> a

    clash-lib Clash.Unique

    No documentation available.

  6. setLogAction :: HasLog env msg m => LogAction m msg -> env -> env

    co-log Colog.Monad

    Sets LogAction to the given one inside the environment.

  7. set_tuple_element :: (IsSource a1, IsRegister a2) => a1 -> a2 -> Int -> Op

    codec-beam Codec.Beam.Instructions

    Update the element at position of the tuple in register with the new source element.

  8. setProperty :: Setter' a b -> Text -> (Value -> Parser b) -> Object -> Parser (a -> a)

    configuration-tools Configuration.Utils.ConfigFile

    A JSON Value parser for a property of a given Object that updates a setter with the parsed value.

    data Auth = Auth
    { _userId ∷ !Int
    , _pwd ∷ !String
    }
    
    userId ∷ Functor f ⇒ (Int → f Int) → Auth → f Auth
    userId f s = (\u → s { _userId = u }) <$> f (_userId s)
    
    pwd ∷ Functor f ⇒ (String → f String) → Auth → f Auth
    pwd f s = (\p → s { _pwd = p }) <$> f (_pwd s)
    
    -- or with lenses and TemplateHaskell just:
    -- $(makeLenses ''Auth)
    
    instance FromJSON (Auth → Auth) where
    parseJSON = withObject "Auth" $ \o → id
    <$< setProperty user "user" p o
    <*< setProperty pwd "pwd" parseJSON o
    where
    p = withText "user" $ \case
    "alice" → pure (0 ∷ Int)
    "bob" → pure 1
    e → fail $ "unrecognized user " ⊕ e
    

  9. setApplicationState :: τ -> Program τ ()

    core-program Core.Program.Execute

    Update the user supplied top-level application state.

    let settings' = settings { answer = 42 }
    setApplicationState settings'
    

  10. setProgramName :: Rope -> Program τ ()

    core-program Core.Program.Execute

    Override the program name used for logging, etc. At least, that was the idea. Nothing makes use of this at the moment. :/

Page 772 of many | Previous | Next