ocamlderivingocaml-batteries

How to use deriving and batteries at same time in OCaml?


So basically in my project I need to use batteries (for File.lines_of and other related functions) and deriving (for Show.show) at the same time.

However, when I use opam to install package deriving on my Mac, it seems that it will firstly remove the batteries package, after that it will start to install deriving..

and when install batteries using opam, it will firstly remove deriving...

Is there anything wrong with my configuration..? Or it is just the normal case..? THen how can I use batteries and deriving at the same time?

enter image description here


Solution

  • Good luck!