Fmt module not available in REPL

Hi there,

I have installed the Fmt module on my windows set up (Dkml install).

When I try to open it in the REPL, I get the following errors. Any help welcome

PS H:\OCaml\plss> ocaml
OCaml version 4.14.0
Enter #help;; for help.

# open Fmt;;
Line 1, characters 5-8:
1 | open Fmt;;
         ^^^
Error: Unbound module Fmt
# #require "fmt";;
Unknown directive `require'.
#learning 

and of course :

PS H:\OCaml\plss> opam show fmt

<><> fmt: information on all versions <><><><><><><><><><><><><><><><><><><><><>
name                   fmt
all-installed-versions 0.9.0 [playground]
all-versions           0.7.0  0.7.1  0.8.0  0.8.1  0.8.2  0.8.3  0.8.4  0.8.5  0.8.6  0.8.7  0.8.8  0.8.9  0.8.10  0.9.0

<><> Version-specific details <><><><><><><><><><><><><><><><><><><><><><><><><>
version      0.9.0
repository   default
pin          https://erratique.ch/software/fmt/releases/fmt-0.9.0.tbz
url.src      "https://erratique.ch/software/fmt/releases/fmt-0.9.0.tbz"
url.checksum "sha512=66cf4b8bb92232a091dfda5e94d1c178486a358cdc34b1eec516d48ea5acb6209c0dfcb416f0c516c50ddbddb3c94549a45e4a6d5c5fd1c81d3374dec823a83b"
homepage     "https://erratique.ch/software/fmt"
bug-reports  "https://github.com/dbuenzli/fmt/issues"
dev-repo     "git+https://erratique.ch/repos/fmt.git"
authors      "The fmt programmers"
maintainer   "Daniel BĂĽnzli <daniel.buenzl i@erratique.ch>"
license      "ISC"
tags         "string" "format" "pretty-print" "org:erratique"
depends      "ocaml" {>= "4.08.0"}
             "ocamlfind" {build}
             "ocamlbuild" {build}
             "topkg" {build & >= "1.0.3"}
depopts      "base-unix" "cmdliner"
conflicts    "cmdliner" {< "0.9.8"}
synopsis     OCaml Format pretty-printer combinators
description  Fmt exposes combinators to devise `Format` pretty-printing functions.
             Fmt depends only on the OCaml standard library. The optional `Fmt_tty`
             library that allows to setup formatters for terminal color output
             depends on the Unix library. The optional `Fmt_cli` library that
             provides command line support for Fmt depends on [`Cmdliner`][cmdliner].
             Fmt is distributed under the ISC license.
             [cmdliner]: http://erratique.ch/software/cmdliner
             Home page: http://erratique.ch/software/fmt

In utop, #require "fmt";; says there is no such package “fmt”…

try opam install ocamlfind and `#use “topfind”;;" before your commands;

1 Like