Install libghc-regex-compat-prof by entering the following commands in the terminal:
sudo apt update sudo apt install libghc-regex-compat-prof
Description:
GHC profiling library providing old Text.Regex interface
A library providing the old Text.Regex interface to the POSIX regular expression backend. . This package contains additional profiling libraries which can be used with ghc-prof.
Homepage: http://sourceforge.net/projects/lazy-regex
Version: 0.95.1-10build1
Section: universe/haskell