'Haskell fmt library not found

When I import the Haskell Fmt module, I get the information "Could not find module 'Fmt'. It is not a module in the current program, or in any known package".

GHCi, version 9.2.1: https://www.haskell.org/ghc/  :? for help
ghci> :set -XOverloadedStrings
ghci> import Fmt

<no location info>: error:
Could not find module `Fmt'
It is not a module in the current program, or in any known package.
ghci>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source