You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function >>>/2 imported from both Witchcraft.Chain and Exceptional.Raise, call is ambiguous
expanding macro: Witchcraft.Monad.monad/2
If I try to do instead:
useWitchcraft,only: [monad: 2]useExceptional
Then I get:
:only and :except can only be given together to import when :only is either :functions or :macros
I am trying to add some error processing to my Timex usage which is not safe presently. I have copy pasted the code below to get an idea of my use case. It is used in a Phoenix web application.
stream=monadEither.new()dodate1<-caseMap.fetch(params,"date1")do{:ok,date1_s}->caseDate.from_iso8601(date1_s)do{:ok,date}->date|>Timex.to_datetime(:local)|>Either.Right.new{:error,reason}->Either.Left.new("error for date1: #{inspect(reason)}")end:error->Timex.now(:local)|>Timex.beginning_of_day|>Either.Right.newend# ... returnHydroDB.Database.defaults(site,date1,date2,gens,newdefaults,regex)endcasestreamdo%Either.Right{right: stream_}->send_stream(conn,stream_,"text/xml")%Either.Left{left: error}->send_resp(conn,422,error)end
The text was updated successfully, but these errors were encountered:
I use Elixir 1.10.2. My module has:
but at compilation time I get:
If I try to do instead:
Then I get:
I am trying to add some error processing to my
Timex
usage which is not safe presently. I have copy pasted the code below to get an idea of my use case. It is used in a Phoenix web application.The text was updated successfully, but these errors were encountered: