alephcloud / hs-yet-another-logger

Haskell logging framework with a focus on flexibility and performance
Other
5 stars 4 forks source link

Generalize type of logMsg #28

Closed larskuhtz closed 9 years ago

larskuhtz commented 9 years ago

Currently the definition is logMsg is overly restrictive:

logMsg ∷ Lens' (LogMessage a) a
logMsg = lens _logMsg $ \a b → a { _logMsg = b }

It should be relax to allow changing the type of a:

logMsg ∷ Lens (LogMessage a) (LogMessage b) a b
logMsg = lens _logMsg $ \a b → a { _logMsg = b }
larskuhtz commented 9 years ago

resolved in PR #31.