Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 159
    • Issues 159
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #422

Closed
Open
Opened Nov 04, 2024 by Grégoire Locqueville@glocqueville
  • Report abuse
  • New issue
Report abuse New issue

Automatically import useful modules in the REPL

Summary

Using the REPL is currently cumbersome: after logging into a Nix shell and launching cabal repl, one needs to manually import all modules that one might want to use, one by one.

Steps to reproduce

  • Log into a Nix shell
  • Launch cabal repl
  • Try to use a function defined in some Gargantext module without fully qualifying the name (i.e. use runCmd, not Gargantext.Database.Prelude.runCmd)

What is the current bug behavior?

The function is not found, instead one gets error: Variable not in scope

What is the expected correct behavior?

The function is found

Possible fixes

Write a file .ghci at the root of the project, importing the needed modules. GHCi should read and execute its content everytime it is run.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#422