Skip to content

with returns Syntax Error #43

Description

@gjaldon

I'm trying to run the below code but get a syntax error for with:

module Logon = struct
  type t =
    { session_id: string;
      time: Time.t;
      user: string;
      credentials: string;
    } with fields
end;;

I've already loaded core with open Core.Std;;. Is there some other step I'm missing or does fieldslib no longer work with Ocaml 4.03? I'm running the code above in utop (1.19.3), btw.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions