Install libghc-magic-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libghc-magic-dev
Description:
File type determination library for Haskell
This package provides a Haskell interface to the C libmagic library. With it, you can determine the type of a file by examining its contents rather than its name. The Haskell interface provides a full-featured binding. . This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.
Homepage: http://hackage.haskell.org/package/magic
Version: 1.1-6build1
Section: universe/haskell