Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about monad-transformers

Read more about monad-transformers

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - monad-transformers

Binding a Maybe within another monad to avoid case stairway of doom?

I'm fetching a user from a database with a key I'm fetching from an api (uid). The uid is a Maybe ByteString, and so I can either case check whether it's a Maybe and then run the Redis monad, or someh...
test-img

staletidings

haskell

monads

monad-transformers

Votes: 0

Answers: 0

Couldn't match LoggingT with NoLoggingT

I have a following monad transformer stack including the monad-logger transformer and I want to be able to turn off logging by a parameter. I can see, there is the NoLoggingT type but I don't know how...
test-img

xbalaj

haskell

logging

monad-transformers

Votes: 0

Answers: 1

Latest Answer

Your MyApp type is too concrete: it always includes LoggingT, so it always runs with logging enabled. You could give it a type parameter, and instantiate that type parameter either with LoggingT or No...
test-img

amalloy

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved