Skip to content

Instantly share code, notes, and snippets.

@IQubic
Last active June 17, 2024 02:15
Show Gist options
  • Save IQubic/4651c2428459026d01df8677acd8495a to your computer and use it in GitHub Desktop.
Save IQubic/4651c2428459026d01df8677acd8495a to your computer and use it in GitHub Desktop.
Cannot find module
module Catppuccin (module Catppuccin) where
catRosewater, catFlamingo, catPink, catMauve,
catRed, catMaroon, catPeach, catYellow,
catGreen, catTeal, catSky, catSapphire,
catBlue, catLavender, catText, catSubtext1,
catSubtext0, catOverlay2, catOverlay1, catOverlay0,
catSurface2, catSurface1, catSurface0, catBase,
catMantle, catCrust :: String
catRosewater = "#f5e0dc"
catFlamingo = "#f2cdcd"
catPink = "#f5c2e7"
catMauve = "#cba6f7"
catRed = "#f38ba8"
catMaroon = "#eba0ac"
catPeach = "#fab387"
catYellow = "#f9e2af"
catGreen = "#a6e3a1"
catTeal = "#94e2d5"
catSky = "#89dceb"
catSapphire = "#74c7ec"
catBlue = "#89b4fa"
catLavender = "#b4befe"
catText = "#cdd6f4"
catSubtext1 = "#bac2de"
catSubtext0 = "#a6adc8"
catOverlay2 = "#9399b2"
catOverlay1 = "#7f849c"
catOverlay0 = "#6c7086"
catSurface2 = "#585b70"
catSurface1 = "#45475a"
catSurface0 = "#313244"
catBase = "#1e1e2e"
catMantle = "#181825"
catCrust = "#11111b"
-- ghc error
xmonad.hs:42:1: error:
Could not find module ‘Catppuccin’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
42 | import Catppuccin
|
-- file structure
[sophia@LATITUDE-NIXOS:/etc/nixos]# ls xmonadConfig
catppuccin.hs xmonad.cabal xmonad.hs
-- Note, I'm using cabal to build this.
name: my-xmonad
version: 0.1.0.0
license: BSD3
author: Sophia Caspe
maintainer: avi.caspe@gmail.com
build-type: Simple
cabal-version: >=1.10
executable my-xmonad
main-is: xmonad.hs
build-depends: base
, xmonad
, xmonad-contrib
hs-source-dirs: .
default-language: Haskell2010
ghc-options: -Wall -O2 -threaded -rtsopts -with-rtsopts=-N
-- Base
import XMonad
import XMonad.Config.Desktop
import qualified XMonad.StackSet as W
import System.IO (hPutStrLn, Handle)
import System.Exit (exitSuccess)
-- Actions
import XMonad.Actions.CopyWindow (kill1)
import XMonad.Actions.Promote
import XMonad.Actions.RotSlaves (rotSlavesDown, rotAllDown)
import XMonad.Actions.WithAll (killAll)
-- Hooks
import XMonad.Hooks.TaffybarPagerHints
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageDocks (avoidStruts, docks)
import XMonad.Hooks.WindowSwallowing
import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat)
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.SetWMName
-- Data and Control modules
import Data.Monoid (All)
-- Layouts
import XMonad.Layout.PerWorkspace
import XMonad.Layout.WindowNavigation
import XMonad.Layout.Renamed
import XMonad.Layout.ToggleLayouts
import XMonad.Layout.Tabbed
import XMonad.Layout.NoBorders (smartBorders, hasBorder)
-- Utilities
import XMonad.Util.EZConfig (additionalKeysP)
import XMonad.Util.NamedScratchpad
import XMonad.Util.Run (spawnPipe, safeSpawn)
import XMonad.Util.SpawnOnce
import XMonad.Util.Hacks (javaHack)
-- Theme
import Catppuccin
-- Other config stuff omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment